diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-02-13 18:42:06 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-02-13 18:42:06 +0100 |
commit | 0b58d1d635b33148e6765eb35016b0fb43f214b3 (patch) | |
tree | ce1dc14a79ca95e60579109bd7ff664e5af2d34f | |
parent | 74fa32edabf0765b0c9dbba01161b0d2aed81278 (diff) |
Some cppcheck cleaning
-rw-r--r-- | sdext/source/minimizer/pppoptimizerdialog.cxx | 3 | ||||
-rw-r--r-- | 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<rendering::XSpriteCanvas>& rxCanvas); void ThawPanes (void); void Restore (void); - ::boost::shared_ptr<PresenterSprite> GetSubstitution (void); + ::boost::shared_ptr<PresenterSprite> 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<PresenterSprite> PaneGroup::GetSubstitution (void) +::boost::shared_ptr<PresenterSprite> PaneGroup::GetSubstitution (void) const { return mpSubstitution; } |