#1292 Fixed CppCheck Issues in FileInterface

This commit is contained in:
Jacob Støren
2017-03-06 11:17:47 +01:00
parent b19fe2bc4b
commit c22c2c9a00
4 changed files with 6 additions and 44 deletions

View File

@@ -362,13 +362,12 @@ void RifEclipseInputFileTools::parseAndReadPathAliasKeyword(const QString &fileN
data.open(QFile::ReadOnly);
QString line;
qint64 lineLength = -1;
bool foundPathsKeyword = false;
do
{
lineLength = data.readLine(buf, sizeof(buf));
qint64 lineLength = data.readLine(buf, sizeof(buf));
if (lineLength > 0)
{
line = QString::fromAscii(buf);