summaryrefslogtreecommitdiff
path: root/include/xmloff/xmlictxt.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-09-16 14:26:50 +0200
committerMichael Stahl <mstahl@redhat.com>2016-09-16 14:33:59 +0200
commitdbf87d2124a0c01014b9e839804455d3be38831f (patch)
tree7698a6eb9def50936fbaf792a0a1acdeda99d6d0 /include/xmloff/xmlictxt.hxx
parentc480677f5f654ada532dfba21e3d34718c977131 (diff)
coverity#1372990 xmloff: use unique_ptr for RewindMaps
Change-Id: I51e67607d94a465ce39e822f01a0c60efbf1a0f0
Diffstat (limited to 'include/xmloff/xmlictxt.hxx')
-rw-r--r--include/xmloff/xmlictxt.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/xmloff/xmlictxt.hxx b/include/xmloff/xmlictxt.hxx
index 6e064e293a68..6d2411219d6b 100644
--- a/include/xmloff/xmlictxt.hxx
+++ b/include/xmloff/xmlictxt.hxx
@@ -43,10 +43,10 @@ class XMLOFF_DLLPUBLIC SvXMLImportContext : public ::cppu::WeakImplHelper1< ::cs
sal_uInt16 mnPrefix;
OUString maLocalName;
- std::unique_ptr<SvXMLNamespaceMap> mxRewindMap;
+ std::unique_ptr<SvXMLNamespaceMap> m_pRewindMap;
- SAL_DLLPRIVATE SvXMLNamespaceMap *TakeRewindMap() { return mxRewindMap.release(); }
- SAL_DLLPRIVATE void PutRewindMap( SvXMLNamespaceMap *p ) { mxRewindMap.reset(p); }
+ SAL_DLLPRIVATE std::unique_ptr<SvXMLNamespaceMap> TakeRewindMap() { return std::move(m_pRewindMap); }
+ SAL_DLLPRIVATE void PutRewindMap(std::unique_ptr<SvXMLNamespaceMap> p) { m_pRewindMap = std::move(p); }
protected: