From 443a5c25db02aa7ac505fdc3b0fa60c1d584a5f1 Mon Sep 17 00:00:00 2001 From: Daniel Neus Date: Mon, 4 Jan 2016 21:35:24 +0100 Subject: String comparision fixes fix PVS-Studio perfomance warnings --- src/cli/bench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cli/bench.cpp') diff --git a/src/cli/bench.cpp b/src/cli/bench.cpp index cd16a291f..44668f1d3 100644 --- a/src/cli/bench.cpp +++ b/src/cli/bench.cpp @@ -353,7 +353,7 @@ class Benchmark : public Command { for(auto&& prov : T::providers(algo)) { - if(provider == "" || provider == prov) + if(provider.empty() || provider == prov) { auto p = T::create(algo, prov); -- cgit v1.2.3