Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
ea75dbeb
Commit
ea75dbeb
authored
Apr 06, 2020
by
Uwe Schulzweida
Browse files
Removed unused variable operatorArg.
parent
f6f7357c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/process.cc
View file @
ea75dbeb
...
...
@@ -61,7 +61,6 @@ Process::Process(int p_ID, const char *p_operatorName, const char *p_operatorCom
m_oargc
=
0
;
m_operatorCommand
=
"UNINITALIZED"
;
operatorArg
=
"UNINITALIZED"
;
m_noper
=
0
;
initProcess
(
p_operatorName
,
p_operatorCommand
);
...
...
@@ -73,9 +72,7 @@ Process::setOperatorArgv(const char *operatorArguments)
if
(
operatorArguments
)
{
m_oargv
.
clear
();
char
*
operatorArg
=
strdup
(
operatorArguments
);
// fprintf(stderr, "processDefArgument: %d %s\n", oargc, operatorArg);
Debug
(
PROCESS
&&
strchr
(
operatorArg
,
','
)
!=
nullptr
,
"Setting operator arguments: %s"
,
operatorArguments
);
Debug
(
PROCESS
&&
strchr
(
operatorArguments
,
','
)
!=
nullptr
,
"Setting operator arguments: %s"
,
operatorArguments
);
std
::
istringstream
f
(
operatorArguments
);
std
::
string
s
;
...
...
@@ -98,10 +95,11 @@ Process::setOperatorArgv(const char *operatorArguments)
m_oargc
=
m_oargv
.
size
();
}
bool
Process
::
inputIsVariable
()
{
return
m_module
.
streamInCnt
==
-
1
;
return
m_module
.
streamInCnt
==
-
1
;
}
void
...
...
src/process.h
View file @
ea75dbeb
...
...
@@ -70,7 +70,6 @@ public:
int
m_streamCnt
;
char
const
*
m_operatorCommand
;
char
const
*
operatorName
;
char
const
*
operatorArg
;
const
char
*
m_obase
;
char
prompt
[
64
];
...
...
@@ -164,8 +163,7 @@ private:
void
defPrompt
();
/**
* Splits the operator arguments stores them.
* Operator arguments are stored as char arrays and appended with
* a zero termination.
* Operator arguments are stored as char arrays and appended with a zero termination.
*/
void
setOperatorArgv
(
const
char
*
operatorArguments
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment