From 4108bc8d8212fb10de78f44d1af5171afc71b729 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Tue, 18 Oct 2011 22:09:42 +0200 Subject: cppcheck (bzr r10683) --- src/bind/javabind.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bind/javabind.cpp') diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp index db112708e..f1a3423fe 100644 --- a/src/bind/javabind.cpp +++ b/src/bind/javabind.cpp @@ -568,7 +568,7 @@ static const char *commonJavaPaths[] = static bool findJVM(String &result) { std::vector results; - int found = false; + bool found = false; /* Is there one specified by the user? */ const char *javaHome = getenv("JAVA_HOME"); @@ -586,7 +586,7 @@ static bool findJVM(String &result) { return false; } - if (results.size() == 0) + if (results.empty()) return false; //Look first for a Client VM for (unsigned int i=0 ; i