fix for compiler warning

This commit is contained in:
john30
2017-03-19 21:34:34 +01:00
parent 3177b74056
commit a544fbd198
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -568,7 +568,8 @@ int main() {
}
TestReader reader{templates, isSet, mstr[1] == BROADCAST || isMaster(mstr[1])};
lineNo = 0;
dummystr = istringstream("#");
dummystr.clear();
dummystr.str("#");
result = reader.readLineFromStream(dummystr, errorDescription, "inline", lineNo, row);
if (result != RESULT_OK) {
cout << "\"" << check[0] << "\": reader header error: " << getResultCode(result) << ", " << errorDescription
+2 -1
View File
@@ -146,7 +146,8 @@ int main() {
templates->readLineFromStream(dummystr, errorDescription, "inline", lineNo, row, false);
lineNo = 0;
MessageMap* messages = new MessageMap();
dummystr = istringstream("#");
dummystr.clear();
dummystr.str("#");
messages->readLineFromStream(dummystr, errorDescription, "inline", lineNo, row, false);
vector< vector<string> > defaultsRows;
Message* message = NULL;