diff options
author | Joachim Lingner <jl@openoffice.org> | 2006-12-06 13:40:23 +0000 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2006-12-06 13:40:23 +0000 |
commit | 3b71dc4f17d406c38587e91b073ad32525231bf9 (patch) | |
tree | a88b4e316fab6af49e4f0a8f648f37b9ba871dbf /svtools/source/java | |
parent | 6f5ba486426b691b4dd382a965776d1170526b25 (diff) |
#i72313# fixed queryInterface
Diffstat (limited to 'svtools/source/java')
-rw-r--r-- | svtools/source/java/javacontext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/java/javacontext.cxx b/svtools/source/java/javacontext.cxx index 675778f698ae..99b81b4ce9c5 100644 --- a/svtools/source/java/javacontext.cxx +++ b/svtools/source/java/javacontext.cxx @@ -4,9 +4,9 @@ * * $RCSfile: javacontext.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: obo $ $Date: 2006-09-17 15:08:22 $ + * last change: $Author: jl $ $Date: 2006-12-06 14:40:23 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -84,9 +84,9 @@ Any SAL_CALL JavaContext::queryInterface(const Type& aType ) throw (RuntimeException) { if (aType == getCppuType(reinterpret_cast<Reference<XInterface>*>(0))) - return Any( static_cast<XInterface*>(this), aType); + return Any(Reference<XInterface>(static_cast<XInterface*>(this))); else if (aType == getCppuType(reinterpret_cast<Reference<XCurrentContext>*>(0))) - return Any( static_cast<XCurrentContext*>(this), aType); + return Any(Reference<XCurrentContext>( static_cast<XCurrentContext*>(this))); return Any(); } |