cppcheck reduce scope of var in toolkit/...fomrattedcontrol.cxx
This commit is contained in:
@@ -345,7 +345,6 @@ namespace toolkit
|
|||||||
if ( BASEPROPERTY_EFFECTIVE_DEFAULT == nPropId && rValue.hasValue() )
|
if ( BASEPROPERTY_EFFECTIVE_DEFAULT == nPropId && rValue.hasValue() )
|
||||||
{
|
{
|
||||||
double dVal = 0;
|
double dVal = 0;
|
||||||
sal_Int32 nVal = 0;
|
|
||||||
::rtl::OUString sVal;
|
::rtl::OUString sVal;
|
||||||
sal_Bool bStreamed = (rValue >>= dVal);
|
sal_Bool bStreamed = (rValue >>= dVal);
|
||||||
if ( bStreamed )
|
if ( bStreamed )
|
||||||
@@ -354,6 +353,7 @@ namespace toolkit
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
sal_Int32 nVal = 0;
|
||||||
bStreamed = (rValue >>= nVal);
|
bStreamed = (rValue >>= nVal);
|
||||||
if ( bStreamed )
|
if ( bStreamed )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user