summaryrefslogtreecommitdiff
path: root/svx/source/gallery2/galmisc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 13:30:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 17:59:20 +0200
commitf44bd7bb0ce23535f5e0ced7966677f4fff943fc (patch)
tree4e1801a7713e31b2b0f8f9d4fd586d5873511d2e /svx/source/gallery2/galmisc.cxx
parentb1ef3c043d66e7cd529fc4fb13a3d2e8fdb4f2ee (diff)
loplugin:referencecasting in svx
Change-Id: I2f6bc2467fa7689d186bc2bc45d2071ea0a38e63 Reviewed-on: https://gerrit.libreoffice.org/75998 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/gallery2/galmisc.cxx')
-rw-r--r--svx/source/gallery2/galmisc.cxx29
1 files changed, 13 insertions, 16 deletions
diff --git a/svx/source/gallery2/galmisc.cxx b/svx/source/gallery2/galmisc.cxx
index ed20a28de227..b798263e7498 100644
--- a/svx/source/gallery2/galmisc.cxx
+++ b/svx/source/gallery2/galmisc.cxx
@@ -342,25 +342,22 @@ GalleryProgress::GalleryProgress( const GraphicFilter* pFilter )
if ( xMonitor.is() )
{
- mxProgressBar.set( xMonitor, uno::UNO_QUERY );
+ mxProgressBar = xMonitor;
- if( mxProgressBar.is() )
- {
- OUString aProgressText;
-
- if( pFilter )
- {
- aProgressText = SvxResId(RID_SVXSTR_GALLERY_FILTER);
-// pFilter->SetUpdatePercentHdl( LINK( this, GalleryProgress, Update ) ); // sj: progress wasn't working up from SO7 at all
-// // so I am removing this. The gallery progress should
-// // be changed to use the XStatusIndicator instead of XProgressMonitor
- }
- else
- aProgressText = "Gallery";
+ OUString aProgressText;
- xMonitor->addText( "Gallery", aProgressText, false ) ;
- mxProgressBar->setRange( 0, GALLERY_PROGRESS_RANGE );
+ if( pFilter )
+ {
+ aProgressText = SvxResId(RID_SVXSTR_GALLERY_FILTER);
+// pFilter->SetUpdatePercentHdl( LINK( this, GalleryProgress, Update ) ); // sj: progress wasn't working up from SO7 at all
+// // so I am removing this. The gallery progress should
+// // be changed to use the XStatusIndicator instead of XProgressMonitor
}
+ else
+ aProgressText = "Gallery";
+
+ xMonitor->addText( "Gallery", aProgressText, false ) ;
+ mxProgressBar->setRange( 0, GALLERY_PROGRESS_RANGE );
}
}