summaryrefslogtreecommitdiff
path: root/lingucomponent/source
diff options
context:
space:
mode:
Diffstat (limited to 'lingucomponent/source')
-rw-r--r--lingucomponent/source/lingutil/lingutil.cxx2
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx2
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesimp.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx
index a27fc37add6e..aa1fa92edd62 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -53,7 +53,7 @@ using namespace ::com::sun::star;
#if defined(_WIN32)
OString Win_AddLongPathPrefix( const OString &rPathName )
{
-#define WIN32_LONG_PATH_PREFIX "\\\\?\\"
+ constexpr OStringLiteral WIN32_LONG_PATH_PREFIX = "\\\\?\\";
if (!rPathName.match(WIN32_LONG_PATH_PREFIX)) return WIN32_LONG_PATH_PREFIX + rPathName;
return rPathName;
}
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index c4bb53aa14b3..2bacf9386319 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -68,7 +68,7 @@ using namespace linguistic;
// XML-header of SPELLML queries
#if !defined SPELL_XML
-#define SPELL_XML "<?xml?>"
+constexpr OUStringLiteral SPELL_XML = u"<?xml?>";
#endif
// only available in hunspell >= 1.5
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
index cd3363b9fbc7..6fc64f781267 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
@@ -55,7 +55,7 @@
#include <string.h>
// XML-header to query SPELLML support
-#define SPELLML_SUPPORT "<?xml?>"
+constexpr OUStringLiteral SPELLML_SUPPORT = u"<?xml?>";
using namespace osl;
using namespace com::sun::star;