aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/tests.cpp
diff options
context:
space:
mode:
authorDaniel Neus <[email protected]>2016-01-04 21:35:24 +0100
committerDaniel Neus <[email protected]>2016-01-04 21:35:24 +0100
commit443a5c25db02aa7ac505fdc3b0fa60c1d584a5f1 (patch)
tree6683223da4ea9917914c0eb9d7d1110cc86ac6f6 /src/tests/tests.cpp
parent9d3ad9a0f44a9321185ed9f221c828dac81b9f0c (diff)
String comparision fixes
fix PVS-Studio perfomance warnings
Diffstat (limited to 'src/tests/tests.cpp')
-rw-r--r--src/tests/tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/tests.cpp b/src/tests/tests.cpp
index b9d99b1ce..6d419310b 100644
--- a/src/tests/tests.cpp
+++ b/src/tests/tests.cpp
@@ -634,7 +634,7 @@ std::string Text_Based_Test::get_next_line()
std::string line;
std::getline(*m_cur, line);
- if(line == "")
+ if(line.empty())
continue;
if(line[0] == '#')
@@ -674,7 +674,7 @@ std::vector<Test::Result> Text_Based_Test::run()
while(true)
{
const std::string line = get_next_line();
- if(line == "") // EOF
+ if(line.empty()) // EOF
break;
if(line[0] == '[' && line[line.size()-1] == ']')