aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/read_cfg.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/lib/utils/read_cfg.cpp
parent9d3ad9a0f44a9321185ed9f221c828dac81b9f0c (diff)
String comparision fixes
fix PVS-Studio perfomance warnings
Diffstat (limited to 'src/lib/utils/read_cfg.cpp')
-rw-r--r--src/lib/utils/read_cfg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/read_cfg.cpp b/src/lib/utils/read_cfg.cpp
index 1a15f2e63..bf68c0479 100644
--- a/src/lib/utils/read_cfg.cpp
+++ b/src/lib/utils/read_cfg.cpp
@@ -38,12 +38,12 @@ std::map<std::string, std::string> read_cfg(std::istream& is)
++line;
- if(s == "" || s[0] == '#')
+ if(s.empty() || s[0] == '#')
continue;
s = clean_ws(s.substr(0, s.find('#')));
- if(s == "")
+ if(s.empty())
continue;
auto eq = s.find("=");