summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-10 10:37:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-10 21:46:38 +0000
commitbf0c43f0d26be225ea630a8846e77ff39dfc6703 (patch)
tree4e314e6ed0b123c132476b9c39d38b250bd3bef0 /xmloff
parent6e44e13a983f7328787dffe2d8529dd2681f5c43 (diff)
cppcheck: variableScope
Change-Id: I8a2262e6e27f0ea5f43837d5a10cb23525fe6ca5
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtparae.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index ddd8a7184801..231e614e0745 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -2829,12 +2829,14 @@ void XMLTextParagraphExport::exportAnyTextFrame(
bool bIsUICharStyle;
bool bHasAutoStyle = false;
- bool bDummy;
OUString sStyle;
if( bAddCharStyles )
- sStyle = FindTextStyleAndHyperlink( *pRangePropSet, bDummy, bIsUICharStyle, bHasAutoStyle );
+ {
+ bool bDummy;
+ sStyle = FindTextStyleAndHyperlink( *pRangePropSet, bDummy, bIsUICharStyle, bHasAutoStyle );
+ }
else
bIsUICharStyle = false;