From 0b58d1d635b33148e6765eb35016b0fb43f214b3 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 13 Feb 2011 18:42:06 +0100 Subject: Some cppcheck cleaning --- sdext/source/minimizer/pppoptimizerdialog.cxx | 3 +-- sdext/source/presenter/PresenterPaneAnimator.cxx | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/sdext/source/minimizer/pppoptimizerdialog.cxx b/sdext/source/minimizer/pppoptimizerdialog.cxx index 43b0639..47de0ae 100644 --- a/sdext/source/minimizer/pppoptimizerdialog.cxx +++ b/sdext/source/minimizer/pppoptimizerdialog.cxx @@ -132,8 +132,6 @@ void SAL_CALL PPPOptimizerDialog::dispatch( const URL& rURL, const Sequence< PropertyValue >& rArguments ) throw( RuntimeException ) { - sal_Int64 nFileSizeSource = 0; - sal_Int64 nFileSizeDest = 0; if ( mxController.is() && ( rURL.Protocol.compareToAscii( "vnd.com.sun.star.comp.SunPresentationMinimizer:" ) == 0 ) ) { @@ -141,6 +139,7 @@ void SAL_CALL PPPOptimizerDialog::dispatch( const URL& rURL, { try { + sal_Int64 nFileSizeSource,nFileSizeDest = 0; mpOptimizerDialog = new OptimizerDialog( mxMSF, mxFrame, this ); mpOptimizerDialog->execute(); diff --git a/sdext/source/presenter/PresenterPaneAnimator.cxx b/sdext/source/presenter/PresenterPaneAnimator.cxx index fe4ad20..443e73b 100644 --- a/sdext/source/presenter/PresenterPaneAnimator.cxx +++ b/sdext/source/presenter/PresenterPaneAnimator.cxx @@ -210,7 +210,7 @@ namespace { void CreateSubstitution (const Reference& rxCanvas); void ThawPanes (void); void Restore (void); - ::boost::shared_ptr GetSubstitution (void); + ::boost::shared_ptr GetSubstitution (void) const; css::geometry::RealRectangle2D GetOriginalBoundingBox (void) const; css::geometry::RealRectangle2D GetCurrentBoundingBox (void) const; void MovePanes ( @@ -1133,8 +1133,7 @@ void PaneGroup::Restore (void) - -::boost::shared_ptr PaneGroup::GetSubstitution (void) +::boost::shared_ptr PaneGroup::GetSubstitution (void) const { return mpSubstitution; } -- cgit v1.2.3