dbaccess/source/core/api/querydescriptor.cxx      |   11 ++++++++++-
 dbaccess/source/core/dataaccess/ContentHelper.cxx |   12 +++++++++++-
 dbaccess/source/inc/apitools.hxx                  |   11 -----------
 3 files changed, 21 insertions(+), 13 deletions(-)

New commits:
commit 9d5365f7cacecf92f1f056dce7bb6bbaf9f0cc40
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Nov 4 15:37:52 2018 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sun Nov 4 15:53:31 2018 +0100

    Replace preprocessor macro with short function definitions
    
    a2058e7516a01167c2d20ed157500b38db967c64 follow-up.
    
    Change-Id: I402cbab4f78daf0de9d1bfa88698d2b071fcabaf
    Reviewed-on: https://gerrit.libreoffice.org/62840
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/dbaccess/source/core/api/querydescriptor.cxx 
b/dbaccess/source/core/api/querydescriptor.cxx
index 1ec9a990b97e..0dc0a609d0ff 100644
--- a/dbaccess/source/core/api/querydescriptor.cxx
+++ b/dbaccess/source/core/api/querydescriptor.cxx
@@ -151,7 +151,16 @@ sal_Int64 SAL_CALL OQueryDescriptor_Base::getSomething( 
const Sequence< sal_Int8
     return 0;
 }
 
-IMPLEMENT_IMPLEMENTATION_ID(OQueryDescriptor_Base)
+css::uno::Sequence<sal_Int8> 
OQueryDescriptor_Base::getUnoTunnelImplementationId()
+{
+    static cppu::OImplementationId aId;
+    return aId.getImplementationId();
+}
+
+css::uno::Sequence<sal_Int8> OQueryDescriptor_Base::getImplementationId()
+{
+    return css::uno::Sequence<sal_Int8>();
+}
 
 void OQueryDescriptor_Base::setColumnsOutOfDate( bool _bOutOfDate )
 {
diff --git a/dbaccess/source/core/dataaccess/ContentHelper.cxx 
b/dbaccess/source/core/dataaccess/ContentHelper.cxx
index b59e70b63490..c52d58c64ae6 100644
--- a/dbaccess/source/core/dataaccess/ContentHelper.cxx
+++ b/dbaccess/source/core/dataaccess/ContentHelper.cxx
@@ -82,7 +82,17 @@ void SAL_CALL OContentHelper::disposing()
 }
 
 
IMPLEMENT_SERVICE_INFO1(OContentHelper,"com.sun.star.comp.sdb.Content","com.sun.star.ucb.Content");
-IMPLEMENT_IMPLEMENTATION_ID(OContentHelper)
+
+css::uno::Sequence<sal_Int8> OContentHelper::getUnoTunnelImplementationId()
+{
+    static cppu::OImplementationId aId;
+    return aId.getImplementationId();
+}
+
+css::uno::Sequence<sal_Int8> OContentHelper::getImplementationId()
+{
+    return css::uno::Sequence<sal_Int8>();
+}
 
 // XContent
 Reference< XContentIdentifier > SAL_CALL OContentHelper::getIdentifier(  )
diff --git a/dbaccess/source/inc/apitools.hxx b/dbaccess/source/inc/apitools.hxx
index 6208b146b4c0..ca5c4948d4a9 100644
--- a/dbaccess/source/inc/apitools.hxx
+++ b/dbaccess/source/inc/apitools.hxx
@@ -152,17 +152,6 @@ public:
 
 // XTypeProvider helpers
 
-#define IMPLEMENT_IMPLEMENTATION_ID( classname )    \
-css::uno::Sequence< sal_Int8 > classname::getUnoTunnelImplementationId() \
-{   \
-    static ::cppu::OImplementationId aId;  \
-    return aId.getImplementationId();  \
-} \
-css::uno::Sequence< sal_Int8 > classname::getImplementationId()    \
-{   \
-    return css::uno::Sequence<sal_Int8>(); \
-}
-
 #define IMPLEMENT_GETTYPES2( classname, baseclass1, baseclass2 )    \
     css::uno::Sequence< css::uno::Type > classname::getTypes()    \
     {   \
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to