summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2015-01-17 02:00:35 +0100
committerNoel Grandin <noelgrandin@gmail.com>2015-01-19 08:39:32 +0000
commitbfe79b50bce44707cb2416e6ff6b7441491967bb (patch)
treebc439d804193c01baa2f78bdf794169e912bf749 /xmlscript
parent08f9bd504de9bcb267a0e71b07759080592bd0d8 (diff)
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: If7ad3584b3124ed0b337836071af1a5bd0451d85 Reviewed-on: https://gerrit.libreoffice.org/13972 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_export.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
index 59148611a702..f66bbfcd8ea8 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
@@ -1051,9 +1051,9 @@ void ElementDescriptor::readDefaults( bool supportPrintable, bool supportVisible
SAL_WARN( "xmlscript.xmldlg", "unexpected property type for \"Enabled\": not bool!" );
}
- bool bVisible = true;
if (supportVisible) try
{
+ bool bVisible = true;
if (_xProps->getPropertyValue("EnableVisible" ) >>= bVisible)
{