diff options
-rw-r--r-- | include/jvmaccess/unovirtualmachine.hxx | 5 | ||||
-rw-r--r-- | jvmaccess/source/unovirtualmachine.cxx | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/include/jvmaccess/unovirtualmachine.hxx b/include/jvmaccess/unovirtualmachine.hxx index 5ff94a784916..382699982aba 100644 --- a/include/jvmaccess/unovirtualmachine.hxx +++ b/include/jvmaccess/unovirtualmachine.hxx @@ -21,13 +21,14 @@ #define INCLUDED_JVMACCESS_UNOVIRTUALMACHINE_HXX #include <jvmaccess/jvmaccessdllapi.h> -#include <jvmaccess/virtualmachine.hxx> #include <sal/config.h> #include <salhelper/simplereferenceobject.hxx> #include <rtl/ref.hxx> namespace jvmaccess { +class VirtualMachine; + /** An encapsulating wrapper around a Java virtual machine and an appropriate UNO class loader. */ @@ -73,7 +74,7 @@ public: @return The Java virtual machine wrapper. Will never be null. */ - rtl::Reference< jvmaccess::VirtualMachine > getVirtualMachine() const { return m_virtualMachine;} + rtl::Reference< jvmaccess::VirtualMachine > getVirtualMachine() const; /** Get the UNO class loader. diff --git a/jvmaccess/source/unovirtualmachine.cxx b/jvmaccess/source/unovirtualmachine.cxx index 5ec38d57c1e3..86be8b83e991 100644 --- a/jvmaccess/source/unovirtualmachine.cxx +++ b/jvmaccess/source/unovirtualmachine.cxx @@ -57,7 +57,10 @@ UnoVirtualMachine::UnoVirtualMachine( } } - +rtl::Reference< jvmaccess::VirtualMachine > +UnoVirtualMachine::getVirtualMachine() const { + return m_virtualMachine; +} UnoVirtualMachine::~UnoVirtualMachine() { try { |