Commit 4dcc2b12 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

fixed non changeing parameters not being declared const for argv

parent 3d29139f
Pipeline #11494 passed with stages
in 15 minutes and 43 seconds
Subproject commit 846bc45e013265fa7c47d57bb5a8ff374b508d42
Subproject commit 992934d1a3ba2c5f71bd0f79f6411f04caaa60e4
......@@ -250,14 +250,14 @@ Process::get_operator_id()
}
void
Process::add_file_in_stream(std::string file)
Process::add_file_in_stream(const std::string &file)
{
inputStreams.push_back(std::make_shared<FileStream>(file));
m_streamCnt++;
}
void
Process::add_file_out_stream(std::string file)
Process::add_file_out_stream(const std::string &file)
{
if (file[0] == '-')
{
......
......@@ -105,11 +105,11 @@ public:
/**
* Adds and creates a new file pstream to the in streams
*/
void add_file_in_stream(std::string file);
void add_file_in_stream(const std::string &file);
/**
* Adds and creates a new file pstream to the out streams
*/
void add_file_out_stream(std::string file);
void add_file_out_stream(const std::string &file);
/**
* Adds and creates a new pipe pstream to the in streams
*/
......
......@@ -154,7 +154,7 @@ ProcessManager::create_child_process_for(const std::shared_ptr<Process> &p_paren
}
std::set<std::string>
ProcessManager::handle_first_operator(int p_argcStart, int argc, std::vector<std::string> &argv, const std::shared_ptr<Process> &p_rootProcess)
ProcessManager::handle_first_operator(int p_argcStart, int argc,const std::vector<std::string> &argv, const std::shared_ptr<Process> &p_rootProcess)
{
std::set<std::string> files;
for (int i = p_argcStart; i < argc; i++)
......@@ -184,7 +184,7 @@ ProcessManager::check_single_bracket_only(const char *p_argvEntry, char p_bracke
}
void
ProcessManager::create_processes(int argc, std::vector<std::string> &argv)
ProcessManager::create_processes(int argc,const std::vector<std::string> &argv)
{
ParseStatus parseStatus = create_processes_from_input(argc, argv);
if (parseStatus != ParseStatus::Ok)
......@@ -280,7 +280,7 @@ ProcessManager::get_operator_argv(std::string operatorArguments)
ParseStatus
ProcessManager::create_processes_from_input(int argc, std::vector<std::string> &argv)
ProcessManager::create_processes_from_input(int argc, const std::vector<std::string> &argv)
{
Debug(PROCESS_MANAGER, "== Process Creation Start ==");
Debug(PROCESS_MANAGER, "operators: %s", argv_to_string(argv));
......
......@@ -39,7 +39,7 @@ private:
int m_numProcesses = 0;
int m_numProcessesActive = 0;
std::set<std::string> handle_first_operator(int p_argcStart, int argc, std::vector<std::string> &argv, const std::shared_ptr<Process> &p_rootProcess);
std::set<std::string> handle_first_operator(int p_argcStart, int argc,const std::vector<std::string> &argv, const std::shared_ptr<Process> &p_rootProcess);
void check_single_bracket_only(const char *p_argvEntry, char p_bracketType);
void handle_parse_error(ParseStatus p_parseStatus);
int get_num_variable_input_operators();
......@@ -49,8 +49,8 @@ private:
const std::shared_ptr<Process> create_child_process_for(const std::shared_ptr<Process> &p_parentProcess, const std::string &p_command);
public:
ParseStatus create_processes_from_input(int argc, std::vector<std::string> &argv);
void create_processes(int argc, std::vector<std::string> &argv);
ParseStatus create_processes_from_input(int argc, const std::vector<std::string> &argv);
void create_processes(int argc, const std::vector<std::string> &argv);
void run_processes();
void kill_processes();
void validate_processes();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment