diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-02 18:29:09 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:50 +0200 |
commit | 1649892a9e35ee990eed7fef1feebe79a51492ba (patch) | |
tree | 83f870eda8f469435c8ab03ee59e6425dd3e2663 /toolkit | |
parent | 6841f2ff69c7e877937f5ae76836d02ade7120e2 (diff) |
cppcheck reduce scope of var in toolkit/...fomrattedcontrol.cxx
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/formattedcontrol.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/controls/formattedcontrol.cxx b/toolkit/source/controls/formattedcontrol.cxx index fc8b49ddebe6..b931614ed47f 100644 --- a/toolkit/source/controls/formattedcontrol.cxx +++ b/toolkit/source/controls/formattedcontrol.cxx @@ -345,7 +345,6 @@ namespace toolkit if ( BASEPROPERTY_EFFECTIVE_DEFAULT == nPropId && rValue.hasValue() ) { double dVal = 0; - sal_Int32 nVal = 0; ::rtl::OUString sVal; sal_Bool bStreamed = (rValue >>= dVal); if ( bStreamed ) @@ -354,6 +353,7 @@ namespace toolkit } else { + sal_Int32 nVal = 0; bStreamed = (rValue >>= nVal); if ( bStreamed ) { |