Kaydet (Commit) 075a0b30 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

No need for DlgEdObj::supportsService to be virtual

Change-Id: Ib324adb4bc894f16c051fe956c25e37b0502006c
üst f5ef6b39
......@@ -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;
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment