diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2011-10-18 20:09:42 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2011-10-18 20:09:42 +0000 |
| commit | 4108bc8d8212fb10de78f44d1af5171afc71b729 (patch) | |
| tree | 099917e60b2a93f6432c8fddbb52a65ccdb521fe /src/bind/javabind.cpp | |
| parent | Updated Inkscape Portable files. (diff) | |
| download | inkscape-4108bc8d8212fb10de78f44d1af5171afc71b729.tar.gz inkscape-4108bc8d8212fb10de78f44d1af5171afc71b729.zip | |
cppcheck
(bzr r10683)
Diffstat (limited to 'src/bind/javabind.cpp')
| -rw-r--r-- | src/bind/javabind.cpp | 4 |
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++) |
