summaryrefslogtreecommitdiff
path: root/forms/source/runtime/formoperations.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-16 17:35:52 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-12-17 07:31:17 +0000
commitafb5143639598bdc7f78ba000569d80e10d0fbe4 (patch)
treebdcb00001e370eac8eaae92b3ac873dc69c42263 /forms/source/runtime/formoperations.cxx
parentd8b05b5951fd446ff3fa904a6f68846f1abdb2fe (diff)
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I1d037e87c69b1a7de019f1abf1f729bf7e28d762 Reviewed-on: https://gerrit.libreoffice.org/13494 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'forms/source/runtime/formoperations.cxx')
-rw-r--r--forms/source/runtime/formoperations.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx
index a55451acad5a..74e97821e877 100644
--- a/forms/source/runtime/formoperations.cxx
+++ b/forms/source/runtime/formoperations.cxx
@@ -1040,11 +1040,11 @@ namespace frm
if ( m_xCursor.is() && ( m_xCursor == _rEvent.Source ) )
{
- bool bIs = false;
if ( ( _rEvent.PropertyName == PROPERTY_ISMODIFIED )
|| ( _rEvent.PropertyName == PROPERTY_ISNEW )
)
{
+ bool bIs = false;
if ( ( _rEvent.NewValue >>= bIs ) && !bIs )
m_bActiveControlModified = false;
}