[Libreoffice-commits] core.git: basctl/source
Stephan Bergmann
sbergman at redhat.com
Wed Dec 18 05:15:59 PST 2013
basctl/source/dlged/dlgedobj.cxx | 4 ++--
basctl/source/inc/dlgedobj.hxx | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 075a0b30c891014abcdfedfc19678255db05b025
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Dec 18 14:14:20 2013 +0100
No need for DlgEdObj::supportsService to be virtual
Change-Id: Ib324adb4bc894f16c051fe956c25e37b0502006c
diff --git a/basctl/source/dlged/dlgedobj.cxx b/basctl/source/dlged/dlgedobj.cxx
index e29480d..3645142 100644
--- a/basctl/source/dlged/dlgedobj.cxx
+++ b/basctl/source/dlged/dlgedobj.cxx
@@ -671,14 +671,14 @@ void DlgEdObj::TabIndexChange( const beans::PropertyChangeEvent& evt ) throw (Ru
//----------------------------------------------------------------------------
-sal_Bool DlgEdObj::supportsService( const sal_Char* _pServiceName ) const
+bool DlgEdObj::supportsService( OUString const & serviceName ) const
{
bool bSupports = false;
Reference< lang::XServiceInfo > xServiceInfo( GetUnoControlModel() , UNO_QUERY );
// TODO: cache xServiceInfo as member?
if ( xServiceInfo.is() )
- bSupports = xServiceInfo->supportsService( OUString::createFromAscii( _pServiceName ) );
+ bSupports = xServiceInfo->supportsService( serviceName );
return bSupports;
}
diff --git a/basctl/source/inc/dlgedobj.hxx b/basctl/source/inc/dlgedobj.hxx
index e7817e4..651e4d9 100644
--- a/basctl/source/inc/dlgedobj.hxx
+++ b/basctl/source/inc/dlgedobj.hxx
@@ -103,7 +103,7 @@ public:
// FullDrag support
virtual SdrObject* getFullDragClone() const;
- virtual sal_Bool supportsService( const sal_Char* _pServiceName ) const;
+ bool supportsService( OUString const & serviceName ) const;
virtual OUString GetDefaultName() const;
virtual OUString GetUniqueName() const;
More information about the Libreoffice-commits
mailing list