avoid copying SymbolString
This commit is contained in:
Regular → Executable
+3
-3
@@ -76,8 +76,8 @@ int main()
|
|||||||
string check[5] = checks[i];
|
string check[5] = checks[i];
|
||||||
istringstream isstr(check[0]);
|
istringstream isstr(check[0]);
|
||||||
string inputStr = check[1];
|
string inputStr = check[1];
|
||||||
SymbolString mstr = SymbolString(check[2], false);
|
SymbolString mstr(check[2], false);
|
||||||
SymbolString sstr = SymbolString(check[3], false);
|
SymbolString sstr(check[3], false);
|
||||||
string flags = check[4];
|
string flags = check[4];
|
||||||
bool dontMap = flags.find('m') != string::npos;
|
bool dontMap = flags.find('m') != string::npos;
|
||||||
bool failedCreate = flags.find('c') != string::npos;
|
bool failedCreate = flags.find('c') != string::npos;
|
||||||
@@ -147,7 +147,7 @@ int main()
|
|||||||
message = deleteMessage;
|
message = deleteMessage;
|
||||||
}
|
}
|
||||||
istringstream input(inputStr);
|
istringstream input(inputStr);
|
||||||
SymbolString writeMstr = SymbolString();
|
SymbolString writeMstr;
|
||||||
if (message->isPassive() == true) {
|
if (message->isPassive() == true) {
|
||||||
ostringstream output;
|
ostringstream output;
|
||||||
result = message->decode(pt_masterData, mstr, output);
|
result = message->decode(pt_masterData, mstr, output);
|
||||||
|
|||||||
Reference in New Issue
Block a user