diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-21 14:07:27 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-21 14:07:27 +0000 |
commit | 6f147d4a24a06f0874efb07179640941e14d57f0 (patch) | |
tree | a7a380e0c097e598772ca82d4cb88f34c6106d26 /connectivity/source/inc/java | |
parent | 4db8966823a402b7e7f77f226b3e1b5735cbe6a2 (diff) |
INTEGRATION: CWS dba24c (1.12.34); FILE MERGED
2007/10/15 13:30:50 fs 1.12.34.1: during #i82222#: add env() accessor
Diffstat (limited to 'connectivity/source/inc/java')
-rw-r--r-- | connectivity/source/inc/java/lang/Object.hxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/connectivity/source/inc/java/lang/Object.hxx b/connectivity/source/inc/java/lang/Object.hxx index 177d89ad4d..6570fae9fc 100644 --- a/connectivity/source/inc/java/lang/Object.hxx +++ b/connectivity/source/inc/java/lang/Object.hxx @@ -4,9 +4,9 @@ * * $RCSfile: Object.hxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: hr $ $Date: 2007-11-02 12:13:06 $ + * last change: $Author: ihi $ $Date: 2007-11-21 15:07:27 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -88,6 +88,14 @@ namespace connectivity JNIEnv* pEnv; static void addRef(); static void releaseRef(); + + public: + JNIEnv& env() const + { + // according to the documentation of jvmaccess::VirtualMachine::AttachGuard, our env is never + // NULL, so why bothering with pointer checks? + return *pEnv; + } }; //===================================================================== class java_lang_Class; |