summaryrefslogtreecommitdiff
path: root/include/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-25 14:53:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-26 09:45:44 +0100
commita916adba23e81c8c661369d2c06fbe9c6714d9c2 (patch)
tree21d643a0376c29a4fb5efcdcdef6ccd75f7b1b57 /include/oox
parent6dfcabf54a86f7204b4924718a930be5d13b1eeb (diff)
loplugin:stringliteraldefine in l10ntools..oox
Change-Id: Ia19d247f3cf439405c05a53c4cf2c9d0e7344560 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125811 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/oox')
-rw-r--r--include/oox/dump/dumperbase.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/oox/dump/dumperbase.hxx b/include/oox/dump/dumperbase.hxx
index 53a35775ce9d..6d8435e94a1e 100644
--- a/include/oox/dump/dumperbase.hxx
+++ b/include/oox/dump/dumperbase.hxx
@@ -61,13 +61,13 @@ namespace oox::core {
namespace oox::dump {
-#define OOX_DUMP_UNUSED "unused"
-#define OOX_DUMP_UNKNOWN "?unknown"
+inline constexpr OUStringLiteral OOX_DUMP_UNUSED = u"unused";
+inline constexpr OUStringLiteral OOX_DUMP_UNKNOWN = u"?unknown";
#define OOX_DUMP_ERRASCII( ascii ) "?err:" ascii
#define OOX_DUMP_ERR_NOMAP "no-map"
-#define OOX_DUMP_ERR_NONAME "no-name"
+inline constexpr OUStringLiteral OOX_DUMP_ERR_NONAME = u"no-name";
#define OOX_DUMP_ERR_STREAM "stream-error"
#define OOX_DUMP_DUMPEXT ".dump"
@@ -1393,8 +1393,8 @@ protected:
void dumpRemainingStream();
void dumpArray( const String& rName, sal_Int32 nBytes, sal_Unicode cSep = OOX_DUMP_LISTSEP );
- void dumpUnused( sal_Int32 nBytes ) { dumpArray( OOX_DUMP_UNUSED, nBytes ); }
- void dumpUnknown( sal_Int32 nBytes ) { dumpArray( OOX_DUMP_UNKNOWN, nBytes ); }
+ void dumpUnused( sal_Int32 nBytes ) { dumpArray( OUString(OOX_DUMP_UNUSED), nBytes ); }
+ void dumpUnknown( sal_Int32 nBytes ) { dumpArray( OUString(OOX_DUMP_UNKNOWN), nBytes ); }
sal_Unicode dumpUnicode( const String& rName );