summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-11 17:28:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-12 10:53:01 +0000
commit95ed6a2c6d7b7f7dc5cebb25d1c5defabf8a21c0 (patch)
tree923b5f57f1510eb598671eb524c1ecd184de03c5 /sw
parent09749c7751e4c12a898f0c2f98b0c71ebe67ba6d (diff)
Do not reference a dangling OUString
Change-Id: I0908d1300d0d1acb515345ccbdf6cdc2bf44d6a5 (cherry picked from commit 151f3d665581d887cda1e36b817afb124c5c789e) Reviewed-on: https://gerrit.libreoffice.org/8004 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unostyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 8ab87c19aa25..f94adc692c6d 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -1587,7 +1587,7 @@ struct SwStyleBase_Impl
rtl::Reference< SwDocStyleSheet > mxNewBase;
SfxItemSet* pItemSet;
- const OUString& rStyleName;
+ OUString rStyleName;
SwStyleBase_Impl(SwDoc& rSwDoc, const OUString& rName) :
rDoc(rSwDoc),