cppcheck reduce scope of var in toolkit/...fomrattedcontrol.cxx

This commit is contained in:
Pierre-André Jacquod
2011-10-02 18:29:09 +02:00
parent 6841f2ff69
commit 1649892a9e

View File

@@ -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 )
{