diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-18 14:14:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-18 14:14:53 +0100 |
commit | 075a0b30c891014abcdfedfc19678255db05b025 (patch) | |
tree | b058351a46d828c1a56ae759b6e30f5ffdc4daee /basctl/source | |
parent | f5ef6b39fb572a581a54927930dda6b8e8d71797 (diff) |
No need for DlgEdObj::supportsService to be virtual
Change-Id: Ib324adb4bc894f16c051fe956c25e37b0502006c
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/dlged/dlgedobj.cxx | 4 | ||||
-rw-r--r-- | basctl/source/inc/dlgedobj.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/basctl/source/dlged/dlgedobj.cxx b/basctl/source/dlged/dlgedobj.cxx index e29480d25fbe..3645142c3b39 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 e7817e4cc2a9..651e4d9b62e5 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; |