diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-03-22 23:08:18 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-03-22 23:09:00 +0100 |
commit | 62407b674ef9866cf98366a1cbcb96b8062b8294 (patch) | |
tree | cebe31c301d00cc20e8a99315b0fe5c844eeee6a /sfx2 | |
parent | bc13d935e6c6e194f7704f94aa964daf6f4a368e (diff) |
cppcheck: fix variables reassigned before having been used
Change-Id: I0b1025f2697e5cd7abfe5ca9e3c64f02469ba606
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index 524fdd209b24..51ab5d12feab 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -707,8 +707,7 @@ void SAL_CALL ShutdownIcon::initialize( const ::com::sun::star::uno::Sequence< : // third argument only sets veto, everything else will be ignored! if (aArguments.getLength() > 2) { - sal_Bool bVeto = sal_True; - bVeto = ::cppu::any2bool(aArguments[2]); + sal_Bool bVeto = ::cppu::any2bool(aArguments[2]); m_bVeto = bVeto; return; } @@ -719,8 +718,7 @@ void SAL_CALL ShutdownIcon::initialize( const ::com::sun::star::uno::Sequence< : { try { - sal_Bool bQuickstart = sal_False; - bQuickstart = ::cppu::any2bool( aArguments[0] ); + sal_Bool bQuickstart = ::cppu::any2bool( aArguments[0] ); if( !bQuickstart && !GetAutostart() ) return; aGuard.clear(); @@ -740,8 +738,7 @@ void SAL_CALL ShutdownIcon::initialize( const ::com::sun::star::uno::Sequence< : } if ( aArguments.getLength() > 1 ) { - sal_Bool bAutostart = sal_False; - bAutostart = ::cppu::any2bool( aArguments[1] ); + sal_Bool bAutostart = ::cppu::any2bool( aArguments[1] ); if (bAutostart && !GetAutostart()) SetAutostart( true ); if (!bAutostart && GetAutostart()) |