summaryrefslogtreecommitdiff
path: root/writerfilter/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-08 11:49:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-08 13:03:58 +0200
commit18e5d441ca3c3f0b59db8beaa87e3565489db6f1 (patch)
treef9b515737eede4fb47a569167c96563d27ed2ccb /writerfilter/inc
parent08a11f8fe19560b000c62da00d7425b4f500d605 (diff)
simplify QNameToString
no need for it to be a class, and no need for the data to be allocated at runtime Change-Id: I80bca34b2af221534eae5a6e90de369fa29037e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91878 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter/inc')
-rw-r--r--writerfilter/inc/ooxml/QNameToString.hxx25
1 files changed, 3 insertions, 22 deletions
diff --git a/writerfilter/inc/ooxml/QNameToString.hxx b/writerfilter/inc/ooxml/QNameToString.hxx
index 2f3376edbd93..9cdf13de143b 100644
--- a/writerfilter/inc/ooxml/QNameToString.hxx
+++ b/writerfilter/inc/ooxml/QNameToString.hxx
@@ -19,34 +19,15 @@
#ifndef INCLUDED_WRITERFILTER_INC_OOXML_QNAMETOSTRING_HXX
#define INCLUDED_WRITERFILTER_INC_OOXML_QNAMETOSTRING_HXX
-#include <map>
#include <string>
#include <dmapper/resourcemodel.hxx>
namespace writerfilter
{
-class QNameToString final : public virtual SvRefBase
-{
- typedef tools::SvRef<QNameToString> Pointer_t;
- typedef std::map < Id, std::string > Map;
-
- static Pointer_t pInstance;
-
- void init();
-
- Map mMap;
-
- /**
- Generated.
- */
- QNameToString();
-
-public:
- static Pointer_t const & Instance();
-
- std::string operator()(Id qName);
-};
+#ifdef DBG_UTIL
+ std::string QNameToString(Id);
+#endif
}