Fix two compiler warnings

This commit is contained in:
Jacob Støren 2017-09-27 13:44:16 +02:00
parent 70a41709cf
commit a24ce670cf
2 changed files with 2 additions and 3 deletions

View File

@ -73,7 +73,7 @@ void RifColumnBasedRsmspecParser::parseData(const QString& data)
for (size_t i = 0; i < columnCount; i++)
{
double entry = entries.at(i).toDouble();
double entry = entries.at(static_cast<int>(i)).toDouble();
table[i].values.push_back(entry);
}
} while (std::getline(streamData, line));

View File

@ -220,7 +220,6 @@ TEST(RifRsmspecParserToolsTest, TestSplitLineToDoubles)
out << " 9 0.0 0.0 0.0 0.0 0.0\n";
out << " 10 0.0 0.0 0.0 0.0 0.0\n";
RifRsmspecParserTools parserTool;
std::stringstream streamData;
streamData.str(data.toStdString());
std::string line;
@ -230,7 +229,7 @@ TEST(RifRsmspecParserToolsTest, TestSplitLineToDoubles)
while (std::getline(streamData, line))
{
std::vector<double> values;
parserTool.splitLineToDoubles(line, values);
RifRsmspecParserTools::splitLineToDoubles(line, values);
table.push_back(values);
}