From 6d3dd1adec0990ee95ad88d252c59766e9cc56ed Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 25 Mar 2015 15:55:44 +0100 Subject: loplugin:constantfunction Change-Id: Ic95699c514b24886ab1ca6d2b625fe9bd033f4ea --- connectivity/source/drivers/kab/KDriver.cxx | 9 +-------- connectivity/source/drivers/kab/KDriver.hxx | 4 ---- 2 files changed, 1 insertion(+), 12 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/drivers/kab/KDriver.cxx b/connectivity/source/drivers/kab/KDriver.cxx index 582e85e03984..3deb36b34351 100644 --- a/connectivity/source/drivers/kab/KDriver.cxx +++ b/connectivity/source/drivers/kab/KDriver.cxx @@ -355,7 +355,7 @@ void KabDriver::disposing() OUString KabDriver::getImplementationName_Static( ) throw(RuntimeException) { - return OUString::createFromAscii( impl_getAsciiImplementationName() ); + return OUString("com.sun.star.comp.sdbc." KAB_SERVICE_NAME ".Driver"); } Sequence< OUString > KabDriver::getSupportedServiceNames_Static( ) throw (RuntimeException) @@ -444,13 +444,6 @@ void SAL_CALL KabDriver::disposing( const EventObject& ) throw (RuntimeException // not interested in (this is the disposing of the desktop, if any) } -const sal_Char* KabDriver::impl_getAsciiImplementationName() -{ - return "com.sun.star.comp.sdbc." KAB_SERVICE_NAME ".Driver"; - // this name is referenced in the configuration and in the kab.xml - // Please be careful when changing it. -} - OUString KabDriver::impl_getConfigurationSettingsPath() { OUStringBuffer aPath; diff --git a/connectivity/source/drivers/kab/KDriver.hxx b/connectivity/source/drivers/kab/KDriver.hxx index fb998bc6c051..d33b1ccd302c 100644 --- a/connectivity/source/drivers/kab/KDriver.hxx +++ b/connectivity/source/drivers/kab/KDriver.hxx @@ -166,10 +166,6 @@ namespace connectivity static OUString getImplementationName_Static( ) throw(::com::sun::star::uno::RuntimeException); static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static( ) throw (::com::sun::star::uno::RuntimeException); - /** returns the driver's implementation name (being pure ASCII) for reference in various places - */ - static const sal_Char* impl_getAsciiImplementationName(); - /** returns the path of our configuration settings */ static OUString impl_getConfigurationSettingsPath(); -- cgit