diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-02 18:27:17 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:50 +0200 |
commit | 6841f2ff69c7e877937f5ae76836d02ade7120e2 (patch) | |
tree | 91c2f7dec8fa196808fd8218a482e0bc19382aba /toolkit | |
parent | 5f6c37b1ebd5c77311b5474e1243091faf147244 (diff) |
cppcheck reduce scope of var in toolkit/...controlmodelcontainerbase.cxx
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/controlmodelcontainerbase.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx index 1d752f99cdad..a211389cca82 100644 --- a/toolkit/source/controls/controlmodelcontainerbase.cxx +++ b/toolkit/source/controls/controlmodelcontainerbase.cxx @@ -783,11 +783,11 @@ void SAL_CALL ControlModelContainerBase::setGroup( const Sequence< Reference< XC ////----- XInitialization ------------------------------------------------------------------- void SAL_CALL ControlModelContainerBase::initialize (const Sequence<Any>& rArguments) throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException) { - sal_Int16 nPageId = -1; if ( rArguments.getLength() == 1 ) { - if ( !( rArguments[ 0 ] >>= nPageId )) - throw lang::IllegalArgumentException(); + sal_Int16 nPageId = -1; + if ( !( rArguments[ 0 ] >>= nPageId )) + throw lang::IllegalArgumentException(); m_nTabPageId = nPageId; } else |