summaryrefslogtreecommitdiff
path: root/codemaker/source/codemaker/global.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'codemaker/source/codemaker/global.cxx')
-rw-r--r--codemaker/source/codemaker/global.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx
index 4a6b2cf345c1..e302d7c7742c 100644
--- a/codemaker/source/codemaker/global.cxx
+++ b/codemaker/source/codemaker/global.cxx
@@ -24,6 +24,7 @@
#include <osl/file.hxx>
#include <string.h>
+#include <string_view>
#include <errno.h>
#if defined(_WIN32)
@@ -118,7 +119,7 @@ OString createFileNameFromType( const OString& destination,
if( nIndex == -1 )
break;
- if (buffer.isEmpty() || OString(".") == buffer.getStr())
+ if (buffer.isEmpty() || std::string_view(".") == buffer.getStr())
{
buffer.append(token);
continue;