summaryrefslogtreecommitdiff
path: root/dbaccess/source/inc/apitools.hxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-11-11 09:28:52 +0100
committerJulien Nabet <serval2412@yahoo.fr>2021-11-11 11:41:24 +0100
commit8770656bfe32d3e89acb6d6da5bda261f2051193 (patch)
tree71074df56844e224a382952457c70b032d6b373a /dbaccess/source/inc/apitools.hxx
parent9f8e4bd8501e9bb9e286cffed5f35d0f0075e9b8 (diff)
Replace some macros in dbaccess part 5
Remove BEGIN_PROPERTY_SEQUENCE + BEGIN_PROPERTY_HELPER + BEGIN_PROPERTY_SEQUENCE + BEGIN_PROPERTY_HELPER + END_PROPERTY_HELPER + IMPLEMENT_SERVICE_INFO_IMPLNAME + IMPLEMENT_SERVICE_INFO_SUPPORTS Change-Id: I44499ba68a162b01a9dd5192228b8190b1f40c98 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125028 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess/source/inc/apitools.hxx')
-rw-r--r--dbaccess/source/inc/apitools.hxx37
1 files changed, 0 insertions, 37 deletions
diff --git a/dbaccess/source/inc/apitools.hxx b/dbaccess/source/inc/apitools.hxx
index c1481b6c40a3..cbfc477673b8 100644
--- a/dbaccess/source/inc/apitools.hxx
+++ b/dbaccess/source/inc/apitools.hxx
@@ -55,47 +55,10 @@ public:
};
-// helper for implementing the XServiceInfo interface
-
-// (internal - not to be used outside - usually)
-#define IMPLEMENT_SERVICE_INFO_IMPLNAME(classname, implasciiname) \
- OUString SAL_CALL classname::getImplementationName( ) \
- { \
- return implasciiname; \
- } \
-
-
-#define IMPLEMENT_SERVICE_INFO_SUPPORTS(classname) \
- sal_Bool SAL_CALL classname::supportsService( const OUString& _rServiceName ) \
- { \
- const css::uno::Sequence< OUString > aSupported(getSupportedServiceNames()); \
- for (const OUString& s : aSupported) \
- if (s == _rServiceName) \
- return true; \
- \
- return false; \
- } \
-
-
// helper for implementing the createArrayHelper
-#define BEGIN_PROPERTY_SEQUENCE(count) \
- css::uno::Sequence< css::beans::Property> aDescriptor(count); \
- css::beans::Property* pDesc = aDescriptor.getArray(); \
- sal_Int32 nPos = 0; \
-
-#define BEGIN_PROPERTY_HELPER(count) \
- BEGIN_PROPERTY_SEQUENCE(count)
-
#define DECL_PROP_IMPL(varname, cpputype) \
pDesc[nPos++] = css::beans::Property(PROPERTY_##varname, PROPERTY_ID_##varname, cpputype,
-#define END_PROPERTY_SEQUENCE() \
- OSL_ENSURE(nPos == aDescriptor.getLength(), "forgot to adjust the count ?"); \
-
-#define END_PROPERTY_HELPER() \
- END_PROPERTY_SEQUENCE() \
- return new ::cppu::OPropertyArrayHelper(aDescriptor);
-
#endif // INCLUDED_DBACCESS_SOURCE_INC_APITOOLS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */