summaryrefslogtreecommitdiffstats
path: root/src/bind/javabind.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bind/javabind.cpp')
-rw-r--r--src/bind/javabind.cpp4
1 files changed, 2 insertions, 2 deletions
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<String> 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<results.size() ; i++)