diff options
author | Jacek Fraczek <fraczek.jacek@gmail.com> | 2016-10-05 22:00:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-10 08:48:30 +0000 |
commit | f004aa99514d385f3ee254bba735f5eaeb7d9ad8 (patch) | |
tree | aacd5792f553b8e9cbf029cc7e0797ed0dd423fe /reportdesign | |
parent | tdf#101442 Change "hyperlink" to "link" (diff) | |
download | core-f004aa99514d385f3ee254bba735f5eaeb7d9ad8.tar.gz core-f004aa99514d385f3ee254bba735f5eaeb7d9ad8.zip |
tdf#89307: Removed SvRef::operator T*()
Conditional statements are using SvRef::Is() method.
Changed static_cast<T*>(svRef<T>) occurances to svRef.get().
Added operator == and != to SvRef.
SbxObject::Execute is using SbxVariableRef internally.
SbxObject::FindQualified is using SbxVariableRef internally.
Change-Id: I45b553e35d8fca9bf71163e6eefc60802a066395
Reviewed-on: https://gerrit.libreoffice.org/29621
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/filter/xml/xmlfilter.cxx | 2 | ||||
-rw-r--r-- | reportdesign/source/ui/dlg/GroupsSorting.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx index f1fe0d224470..d1f933c12c99 100644 --- a/reportdesign/source/filter/xml/xmlfilter.cxx +++ b/reportdesign/source/filter/xml/xmlfilter.cxx @@ -449,7 +449,7 @@ bool ORptFilter::implImport( const Sequence< PropertyValue >& rDescriptor ) tools::SvRef<SfxMedium> pMedium = new SfxMedium( sFileName, ( StreamMode::READ | StreamMode::NOCREATE ) ); - if( pMedium ) + if( pMedium.Is() ) { try { diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx index 5475a1977987..d757587b18d4 100644 --- a/reportdesign/source/ui/dlg/GroupsSorting.cxx +++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx @@ -484,7 +484,7 @@ bool OFieldExpressionControl::SaveModified() m_pParent->m_pController->getUndoManager().LeaveListAction(); } - if ( Controller() ) + if ( Controller().Is() ) Controller()->ClearModified(); if ( GetRowCount() == m_pParent->getGroups()->getCount() ) { |