diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-26 15:49:52 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-03-26 15:05:44 +0100 |
commit | ed9ff1a397c7eeb7eefbef0ba633a62f6f42bef1 (patch) | |
tree | 66c4a7a99fa5448f763a87b7cc4e25ec3d5b5eed /io | |
parent | 967e0cc303c7be4a88905b327b9d02ba12f5e375 (diff) |
Drop these defines
Change-Id: I7ff56d6f016ea90c4b5cdcbbb36141627037c0ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113125
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'io')
-rw-r--r-- | io/source/TextInputStream/TextInputStream.cxx | 7 | ||||
-rw-r--r-- | io/source/TextOutputStream/TextOutputStream.cxx | 7 | ||||
-rw-r--r-- | io/source/acceptor/acceptor.cxx | 7 | ||||
-rw-r--r-- | io/source/connector/connector.cxx | 7 | ||||
-rw-r--r-- | io/source/stm/opipe.cxx | 5 | ||||
-rw-r--r-- | io/test/stm/pipetest.cxx | 6 |
6 files changed, 11 insertions, 28 deletions
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx index 644db6fb3177..9f7c884725cd 100644 --- a/io/source/TextInputStream/TextInputStream.cxx +++ b/io/source/TextInputStream/TextInputStream.cxx @@ -36,9 +36,6 @@ namespace com::sun::star::uno { class XComponentContext; } -#define IMPLEMENTATION_NAME "com.sun.star.comp.io.TextInputStream" -#define SERVICE_NAME "com.sun.star.io.TextInputStream" - using namespace ::osl; using namespace ::cppu; using namespace ::com::sun::star::uno; @@ -378,7 +375,7 @@ Reference< XInputStream > OTextInputStream::getInputStream() OUString OTextInputStream::getImplementationName() { - return IMPLEMENTATION_NAME; + return "com.sun.star.comp.io.TextInputStream"; } sal_Bool OTextInputStream::supportsService(const OUString& ServiceName) @@ -388,7 +385,7 @@ sal_Bool OTextInputStream::supportsService(const OUString& ServiceName) Sequence< OUString > OTextInputStream::getSupportedServiceNames() { - return { SERVICE_NAME }; + return { "com.sun.star.io.TextInputStream" }; } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* diff --git a/io/source/TextOutputStream/TextOutputStream.cxx b/io/source/TextOutputStream/TextOutputStream.cxx index 2700ec1e415a..1271c4d09c96 100644 --- a/io/source/TextOutputStream/TextOutputStream.cxx +++ b/io/source/TextOutputStream/TextOutputStream.cxx @@ -31,9 +31,6 @@ namespace com::sun::star::uno { class XComponentContext; } -#define IMPLEMENTATION_NAME "com.sun.star.comp.io.TextOutputStream" -#define SERVICE_NAME "com.sun.star.io.TextOutputStream" - using namespace ::osl; using namespace ::cppu; using namespace ::com::sun::star::uno; @@ -217,7 +214,7 @@ Reference< XOutputStream > OTextOutputStream::getOutputStream() OUString OTextOutputStream::getImplementationName() { - return IMPLEMENTATION_NAME; + return "com.sun.star.comp.io.TextOutputStream"; } sal_Bool OTextOutputStream::supportsService(const OUString& ServiceName) @@ -227,7 +224,7 @@ sal_Bool OTextOutputStream::supportsService(const OUString& ServiceName) Sequence< OUString > OTextOutputStream::getSupportedServiceNames() { - return { SERVICE_NAME }; + return { "com.sun.star.io.TextOutputStream" }; } diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx index 1be39b4cb7d3..79af13d385b9 100644 --- a/io/source/acceptor/acceptor.cxx +++ b/io/source/acceptor/acceptor.cxx @@ -35,9 +35,6 @@ #include <memory> #include <string_view> -#define IMPLEMENTATION_NAME "com.sun.star.comp.io.Acceptor" -#define SERVICE_NAME "com.sun.star.connection.Acceptor" - using namespace ::osl; using namespace ::cppu; using namespace ::com::sun::star::uno; @@ -234,7 +231,7 @@ void SAL_CALL OAcceptor::stopAccepting( ) OUString OAcceptor::getImplementationName() { - return IMPLEMENTATION_NAME; + return "com.sun.star.comp.io.Acceptor"; } sal_Bool OAcceptor::supportsService(const OUString& ServiceName) @@ -244,7 +241,7 @@ sal_Bool OAcceptor::supportsService(const OUString& ServiceName) Sequence< OUString > OAcceptor::getSupportedServiceNames() { - return { SERVICE_NAME }; + return { "com.sun.star.connection.Acceptor" }; } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx index 87e60934cfb6..0f5a547e6ff3 100644 --- a/io/source/connector/connector.cxx +++ b/io/source/connector/connector.cxx @@ -34,9 +34,6 @@ #include "connector.hxx" -#define IMPLEMENTATION_NAME "com.sun.star.comp.io.Connector" -#define SERVICE_NAME "com.sun.star.connection.Connector" - using namespace ::osl; using namespace ::cppu; using namespace ::com::sun::star::uno; @@ -154,7 +151,7 @@ Reference< XConnection > SAL_CALL OConnector::connect( const OUString& sConnecti OUString OConnector::getImplementationName() { - return IMPLEMENTATION_NAME; + return "com.sun.star.comp.io.Connector"; } sal_Bool OConnector::supportsService(const OUString& ServiceName) @@ -164,7 +161,7 @@ sal_Bool OConnector::supportsService(const OUString& ServiceName) Sequence< OUString > OConnector::getSupportedServiceNames() { - return { SERVICE_NAME }; + return { "com.sun.star.connection.Connector" }; } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* diff --git a/io/source/stm/opipe.cxx b/io/source/stm/opipe.cxx index 732daafecaed..07e203bf0c05 100644 --- a/io/source/stm/opipe.cxx +++ b/io/source/stm/opipe.cxx @@ -46,9 +46,6 @@ using namespace ::com::sun::star::lang; namespace com::sun::star::uno { class XComponentContext; } -// Implementation and service names -#define IMPLEMENTATION_NAME "com.sun.star.comp.io.stm.Pipe" - namespace io_stm{ namespace { @@ -333,7 +330,7 @@ Reference < XConnectable > OPipeImpl::getPredecessor() // XServiceInfo OUString OPipeImpl::getImplementationName() { - return IMPLEMENTATION_NAME; + return "com.sun.star.comp.io.stm.Pipe"; } // XServiceInfo diff --git a/io/test/stm/pipetest.cxx b/io/test/stm/pipetest.cxx index 77c333b0dc80..46637f3f245a 100644 --- a/io/test/stm/pipetest.cxx +++ b/io/test/stm/pipetest.cxx @@ -44,8 +44,6 @@ using namespace ::com::sun::star::test; // streams #include "testfactreg.hxx" -#define IMPLEMENTATION_NAME "test.com.sun.star.comp.extensions.stm.Pipe" -#define SERVICE_NAME "test.com.sun.star.io.Pipe" class WriteToStreamThread : @@ -409,12 +407,12 @@ Sequence<OUString> OPipeTest_getSupportedServiceNames() throw() OUString OPipeTest_getServiceName() throw() { - return OUString( SERVICE_NAME ); + return OUString( "test.com.sun.star.io.Pipe" ); } OUString OPipeTest_getImplementationName() throw() { - return OUString( IMPLEMENTATION_NAME ); + return OUString( "test.com.sun.star.comp.extensions.stm.Pipe" ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |