summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtparae.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-13 11:44:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-13 11:44:00 +0200
commit2357314eaf448f5844b05eed30dd5d9ac91fbc71 (patch)
tree123fdf28f015af9e96ea673685434eef36d484c0 /xmloff/source/text/txtparae.cxx
parentf8fdf861839d6a39f6d15f56a93108328ab8818c (diff)
loplugin:oncevar: empty strings: xmloff
Change-Id: I2ac40424c252b24d78b849ca8b4bfe75d6f073cb
Diffstat (limited to 'xmloff/source/text/txtparae.cxx')
-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 9829030d9d17..fabf67802046 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -777,8 +777,10 @@ OUString XMLTextParagraphExport::FindTextStyleAndHyperlink(
aPropStates.erase( aSecondDel );
aPropStates.erase( aFirstDel );
}
- OUString sParent; // AutoStyles should not have parents!
- sName = GetAutoStylePool().Find( XML_STYLE_FAMILY_TEXT_TEXT, sParent, aPropStates );
+ sName = GetAutoStylePool().Find(
+ XML_STYLE_FAMILY_TEXT_TEXT,
+ OUString(), // AutoStyles should not have parents!
+ aPropStates );
rbHasAutoStyle = true;
}