summaryrefslogtreecommitdiff
path: root/reportdesign/source/core/sdr/RptObject.cxx
diff options
context:
space:
mode:
authorMehmet Emin Başoğlu <mehmeteminbasoglu@hotmail.com>2020-01-27 11:44:37 +0300
committerStephan Bergmann <sbergman@redhat.com>2020-02-07 13:34:45 +0100
commit91a3411bb74ad81663a4204f4547c523a1237f7b (patch)
tree5a5660ed384870de8fa1882822bf54210d32ac16 /reportdesign/source/core/sdr/RptObject.cxx
parent43697b00a21a796c449348470564e525da861c51 (diff)
tdf#54938: Adapt supportsService implementations to cppu::supportsService
Change-Id: I5484047a8b0e87d012ca3a37466b9ebf718257b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87494 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'reportdesign/source/core/sdr/RptObject.cxx')
-rw-r--r--reportdesign/source/core/sdr/RptObject.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/reportdesign/source/core/sdr/RptObject.cxx b/reportdesign/source/core/sdr/RptObject.cxx
index 64399bd9117c..ab478828dd7d 100644
--- a/reportdesign/source/core/sdr/RptObject.cxx
+++ b/reportdesign/source/core/sdr/RptObject.cxx
@@ -425,14 +425,13 @@ void OObjectBase::_propertyChange( const beans::PropertyChangeEvent& /*evt*/ )
bool OObjectBase::supportsService( const OUString& _sServiceName ) const
{
- bool bSupports = false;
-
+ // TODO: cache xServiceInfo as member?
Reference< lang::XServiceInfo > xServiceInfo( m_xReportComponent , UNO_QUERY );
- // TODO: cache xServiceInfo as member?
- if ( xServiceInfo.is() )
- bSupports = xServiceInfo->supportsService( _sServiceName );
- return bSupports;
+ if ( xServiceInfo.is() )
+ return cppu::supportsService(xServiceInfo.get(), _sServiceName);
+ else
+ return false;
}