summaryrefslogtreecommitdiff
path: root/scripting/source/dlgprov
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-20 21:09:40 +0100
committerJulien Nabet <serval2412@yahoo.fr>2014-12-21 20:18:17 +0100
commit17fc7aa3b8fcd731fb05b5e17e23ee984d166a8f (patch)
tree247985f50367083dbfd1688e66db12c230d04fc1 /scripting/source/dlgprov
parentbe34823092ce05002be61a50d0dbf156bb5095ba (diff)
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I390607e002e93cf7a6babc26d9be084d9f185058
Diffstat (limited to 'scripting/source/dlgprov')
-rw-r--r--scripting/source/dlgprov/dlgprov.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx
index 38294297cc75..c6b23ba052e0 100644
--- a/scripting/source/dlgprov/dlgprov.cxx
+++ b/scripting/source/dlgprov/dlgprov.cxx
@@ -669,9 +669,9 @@ static const char aResourceResolverPropName[] = "ResourceResolver";
uno::Reference< beans::XPropertySet > xDlgModPropSet( xCtrlMod, uno::UNO_QUERY );
if( xDlgModPropSet.is() )
{
- bool bDecoration = true;
try
{
+ bool bDecoration = true;
Any aDecorationAny = xDlgModPropSet->getPropertyValue( aDecorationPropName );
aDecorationAny >>= bDecoration;
if( !bDecoration )