diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-03-26 12:08:00 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-03-26 12:08:00 +0000 |
commit | 3c7310cd2d2648a672dcaad030215a1aecb34bf4 (patch) | |
tree | 5b705a7b084bef8df4c3c455b8e224d232da0c00 /extensions/source | |
parent | 4da60e3b7c9316018b4def2eb52f23d6f3089884 (diff) |
INTEGRATION: CWS mingwport03 (1.14.188); FILE MERGED
2006/11/07 17:58:44 vg 1.14.188.3: RESYNC: (1.14-1.15); FILE MERGED
2006/10/24 12:58:21 vg 1.14.188.2: #i53572# MinGW port
2006/09/06 14:08:44 vg 1.14.188.1: #i53572# MinGW port
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/ole/servprov.cxx | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/extensions/source/ole/servprov.cxx b/extensions/source/ole/servprov.cxx index 3e0e25601fa4..f6dff5b81923 100644 --- a/extensions/source/ole/servprov.cxx +++ b/extensions/source/ole/servprov.cxx @@ -4,9 +4,9 @@ * * $RCSfile: servprov.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: ihi $ $Date: 2007-03-26 12:48:41 $ + * last change: $Author: vg $ $Date: 2007-03-26 13:08:00 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -36,8 +36,13 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_extensions.hxx" +#ifdef __MINGW32__ +#define INITGUID +#include <initguid.h> +#else #include "ole2uno.hxx" #include "unoconversionutilities.hxx" +#endif #include "servprov.hxx" #include "unoobjw.hxx" #include "oleobjw.hxx" @@ -99,7 +104,7 @@ ProviderOleWrapper_Impl::ProviderOleWrapper_Impl(const Reference<XMultiServiceFa { m_guid = *pGuid; - Reference<XInterface> xInt = smgr->createInstance(L"com.sun.star.bridge.oleautomation.BridgeSupplier"); + Reference<XInterface> xInt = smgr->createInstance(reinterpret_cast<const sal_Unicode*>(L"com.sun.star.bridge.oleautomation.BridgeSupplier")); if (xInt.is()) { @@ -234,7 +239,7 @@ OneInstanceOleWrapper_Impl::OneInstanceOleWrapper_Impl( const Reference<XMultiS { m_guid = *pGuid; - Reference<XInterface> xInt = m_smgr->createInstance(L"com.sun.star.bridge.oleautomation.BridgeSupplier"); + Reference<XInterface> xInt = m_smgr->createInstance(reinterpret_cast<const sal_Unicode*>(L"com.sun.star.bridge.oleautomation.BridgeSupplier")); if (xInt.is()) { @@ -544,7 +549,7 @@ Sequence< OUString > SAL_CALL OleClient_Impl::getAvailableServiceNames() thro OUString OleClient_Impl::getImplementationName() { - return OUString(L"com.sun.star.comp.ole.OleClient"); + return OUString(reinterpret_cast<const sal_Unicode*>(L"com.sun.star.comp.ole.OleClient")); } Reference<XInterface> SAL_CALL OleClient_Impl::createInstance(const OUString& ServiceSpecifier) throw (Exception, RuntimeException ) @@ -557,7 +562,7 @@ Reference<XInterface> SAL_CALL OleClient_Impl::createInstance(const OUString& Se o2u_attachCurrentThread(); result = CLSIDFromProgID( - ServiceSpecifier.getStr(), //Pointer to the ProgID + reinterpret_cast<LPCWSTR>(ServiceSpecifier.getStr()), //Pointer to the ProgID &classId); //Pointer to the CLSID @@ -638,7 +643,7 @@ OleServer_Impl::OleServer_Impl( const Reference<XMultiServiceFactory>& smgr): { //library unloading support globalModuleCount.modCnt.acquire( &globalModuleCount.modCnt); - Reference<XInterface> xInt = m_smgr->createInstance(L"com.sun.star.bridge.oleautomation.BridgeSupplier"); + Reference<XInterface> xInt = m_smgr->createInstance(reinterpret_cast<const sal_Unicode*>(L"com.sun.star.bridge.oleautomation.BridgeSupplier")); if (xInt.is()) { @@ -670,11 +675,11 @@ Any SAL_CALL OleServer_Impl::queryInterface( const Type& aType ) throw(RuntimeEx else return a; } -void SAL_CALL OleServer_Impl::acquire( ) throw(RuntimeException) +void SAL_CALL OleServer_Impl::acquire( ) throw() { OWeakObject::acquire(); } -void SAL_CALL OleServer_Impl::release( ) throw (RuntimeException) +void SAL_CALL OleServer_Impl::release( ) throw () { OWeakObject::release(); } |