diff options
| author | Andrew Higginson <at.higginson@gmail.com> | 2011-12-27 21:04:47 +0000 |
|---|---|---|
| committer | Andrew <at.higginson@gmail.com> | 2011-12-27 21:04:47 +0000 |
| commit | 80960b623a99aae1402ab651b2974ef544ed3b03 (patch) | |
| tree | ba49d42c2789e9e11f805e2d5263e10f9fedeef8 /src/bind/javabind.cpp | |
| parent | try to fix bug (diff) | |
| parent | GDL: Cherry-pick upstream patch 73852 (2011-03-23) - Add missing return value. (diff) | |
| download | inkscape-80960b623a99aae1402ab651b2974ef544ed3b03.tar.gz inkscape-80960b623a99aae1402ab651b2974ef544ed3b03.zip | |
merged with trunk so I can build again...
(bzr r10092.1.36)
Diffstat (limited to 'src/bind/javabind.cpp')
| -rw-r--r-- | src/bind/javabind.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp index 6dc8c9a9b..d2091eb1b 100644 --- a/src/bind/javabind.cpp +++ b/src/bind/javabind.cpp @@ -1,8 +1,18 @@ /** * @file - * @brief This is a simple mechanism to bind Inkscape to Java, and thence + * This is a simple mechanism to bind Inkscape to Java, and thence * to all of the nice things that can be layered upon that. * + * Note: We must limit Java or JVM-specific code to this file + * and to dobinding.cpp. It should be hidden from javabind.h + * + * This file is mostly about getting things up and running, and + * providing the basic C-to-Java hooks. + * + * dobinding.cpp will have the rote and repetitious + * class-by-class binding + */ +/* * Authors: * Bob Jamison * @@ -52,23 +62,13 @@ #include "javabind-private.h" #include <path-prefix.h> #include <prefix.h> -#include <glib/gmessages.h> +#include <glib.h> //For repr and document #include <document.h> #include <inkscape.h> #include <xml/repr.h> -/** - * Note: We must limit Java or JVM-specific code to this file - * and to dobinding.cpp. It should be hidden from javabind.h - * - * This file is mostly about getting things up and running, and - * providing the basic C-to-Java hooks. - * - * dobinding.cpp will have the rote and repetitious - * class-by-class binding - */ namespace Inkscape @@ -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++) |
