diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-04-11 12:48:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-04-11 14:24:07 +0200 |
commit | c482ded5fd9be85b441d952b29793a2f38a76b67 (patch) | |
tree | 5a22d8e7a3f0757565436d08227a697d224407fa /ure | |
parent | 8efcfadac5eb3439d40895c040e3163aed833360 (diff) |
Let theMacroExpander.hpp take care about the singleton instantiation details
Change-Id: I8e919291cb4c8fc223ca7143e860a2a0b44cb930
Diffstat (limited to 'ure')
-rw-r--r-- | ure/source/uretest/Makefile | 2 | ||||
-rw-r--r-- | ure/source/uretest/Makefile.pln | 2 | ||||
-rw-r--r-- | ure/source/uretest/cppmain.cc | 14 |
3 files changed, 4 insertions, 14 deletions
diff --git a/ure/source/uretest/Makefile b/ure/source/uretest/Makefile index 8ff1c04cd58e..26a1a6f90bcd 100644 --- a/ure/source/uretest/Makefile +++ b/ure/source/uretest/Makefile @@ -139,8 +139,8 @@ out.sdk/cppserver.$(OBJ_EXT): cppserver.cc out.sdk/cpputypes.cppumaker.flag \ out.sdk/cpputypes.cppumaker.flag: | out.sdk $(CPPUMAKER) -O./out.sdk/include/cpputypes \ - "-Tcom.sun.star.lang.DisposedException;com.sun.star.lang.EventObject;com.sun.star.lang.XMain;com.sun.star.lang.XMultiComponentFactory;com.sun.star.lang.XMultiServiceFactory;com.sun.star.lang.XSingleComponentFactory;com.sun.star.lang.XSingleServiceFactory;com.sun.star.lang.XTypeProvider;com.sun.star.registry.XRegistryKey;com.sun.star.uno.DeploymentException;com.sun.star.uno.Exception;com.sun.star.uno.RuntimeException;com.sun.star.uno.XAggregation;com.sun.star.uno.XComponentContext;com.sun.star.uno.XCurrentContext;com.sun.star.uno.XInterface;com.sun.star.uno.XWeak" \ -BUCR "$(URE_TYPES)" + "-Tcom.sun.star.lang.DisposedException;com.sun.star.lang.EventObject;com.sun.star.lang.XMain;com.sun.star.lang.XMultiComponentFactory;com.sun.star.lang.XMultiServiceFactory;com.sun.star.lang.XSingleComponentFactory;com.sun.star.lang.XSingleServiceFactory;com.sun.star.lang.XTypeProvider;com.sun.star.registry.XRegistryKey;com.sun.star.uno.DeploymentException;com.sun.star.uno.Exception;com.sun.star.uno.RuntimeException;com.sun.star.uno.XAggregation;com.sun.star.uno.XComponentContext;com.sun.star.uno.XCurrentContext;com.sun.star.uno.XInterface;com.sun.star.uno.XWeak;com.sun.star.util.theMacroExpander" \ touch $@ out.sdk/types.cppumaker.flag: out.sdk/types.rdb | out.sdk diff --git a/ure/source/uretest/Makefile.pln b/ure/source/uretest/Makefile.pln index 9ff84ec15309..612e4904e088 100644 --- a/ure/source/uretest/Makefile.pln +++ b/ure/source/uretest/Makefile.pln @@ -122,8 +122,8 @@ out.pln/cppserver.o: cppserver.cc out.pln/cpputypes.cppumaker.flag \ out.pln/cpputypes.cppumaker.flag: | out.pln LD_LIBRARY_PATH=$(URE_HOME)/lib $(SDK_HOME)/bin/cppumaker \ -O./out.pln/include/cpputypes \ - '-Tcom.sun.star.lang.DisposedException;com.sun.star.lang.EventObject;com.sun.star.lang.XMain;com.sun.star.lang.XMultiComponentFactory;com.sun.star.lang.XMultiServiceFactory;com.sun.star.lang.XSingleComponentFactory;com.sun.star.lang.XSingleServiceFactory;com.sun.star.lang.XTypeProvider;com.sun.star.registry.XRegistryKey;com.sun.star.uno.DeploymentException;com.sun.star.uno.Exception;com.sun.star.uno.RuntimeException;com.sun.star.uno.XAggregation;com.sun.star.uno.XComponentContext;com.sun.star.uno.XCurrentContext;com.sun.star.uno.XInterface;com.sun.star.uno.XWeak' \ -BUCR $(URE_HOME)/share/misc/types.rdb + '-Tcom.sun.star.lang.DisposedException;com.sun.star.lang.EventObject;com.sun.star.lang.XMain;com.sun.star.lang.XMultiComponentFactory;com.sun.star.lang.XMultiServiceFactory;com.sun.star.lang.XSingleComponentFactory;com.sun.star.lang.XSingleServiceFactory;com.sun.star.lang.XTypeProvider;com.sun.star.registry.XRegistryKey;com.sun.star.uno.DeploymentException;com.sun.star.uno.Exception;com.sun.star.uno.RuntimeException;com.sun.star.uno.XAggregation;com.sun.star.uno.XComponentContext;com.sun.star.uno.XCurrentContext;com.sun.star.uno.XInterface;com.sun.star.uno.XWeak;com.sun.star.util.theMacroExpander' \ touch $@ out.pln/types.cppumaker.flag: out.pln/types.rdb | out.pln diff --git a/ure/source/uretest/cppmain.cc b/ure/source/uretest/cppmain.cc index c0e368efbd0e..a302b23afa4b 100644 --- a/ure/source/uretest/cppmain.cc +++ b/ure/source/uretest/cppmain.cc @@ -30,6 +30,7 @@ #include "com/sun/star/uno/Sequence.hxx" #include "com/sun/star/uno/XComponentContext.hpp" #include "com/sun/star/uno/XInterface.hpp" +#include "com/sun/star/util/theMacroExpander.hpp" #include "cppuhelper/factory.hxx" #include "cppuhelper/implbase1.hxx" #include "cppuhelper/implementationentry.hxx" @@ -39,7 +40,6 @@ #include "osl/thread.h" #include "rtl/malformeduriexception.hxx" #include "rtl/string.h" -#include "rtl/ustrbuf.hxx" #include "rtl/ustring.h" #include "rtl/ustring.hxx" #include "sal/types.h" @@ -146,17 +146,7 @@ private: static_cast< ::cppu::OWeakObject * >(this)); } } - static char const * const singletons[] = { - "com.sun.star.util.theMacroExpander" }; - for (::std::size_t i = 0; i < SAL_N_ELEMENTS(singletons); ++i) - { - ::rtl::OUStringBuffer b; - b.append("/singletons/"); - b.append(singletons[i]); - css::uno::Reference< css::uno::XInterface > instance( - context_->getValueByName(b.makeStringAndClear()), - css::uno::UNO_QUERY_THROW); - } + css::util::theMacroExpander::get(context_); test( ::test::types::CppTest::create(context_), ::rtl::OUString("test.types.CppTest")); |