diff options
Diffstat (limited to 'codemaker/source/codemaker/global.cxx')
-rw-r--r-- | codemaker/source/codemaker/global.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx index 6d831b45dca8..2862336b15bb 100644 --- a/codemaker/source/codemaker/global.cxx +++ b/codemaker/source/codemaker/global.cxx @@ -22,6 +22,7 @@ #include <rtl/ustring.hxx> #include <osl/thread.h> #include <osl/file.hxx> +#include <o3tl/string_view.hxx> #include <string.h> #include <string_view> @@ -58,7 +59,7 @@ OString getTempDir(const OString& sFileName) if ((index=sFileName.lastIndexOf('\\')) > 0) return sFileName.copy(0, index); #endif - return "."; + return "."_ostr; } OString createFileNameFromType( const OString& destination, @@ -96,8 +97,7 @@ OString createFileNameFromType( const OString& destination, if (bWithSeparator) fileNameBuf.append("/"); - fileNameBuf.append(type); - fileNameBuf.append(postfix); + fileNameBuf.append(type + postfix); OString fileName(fileNameBuf.makeStringAndClear()); @@ -115,7 +115,7 @@ OString createFileNameFromType( const OString& destination, sal_Int32 nIndex = 0; do { - buffer.append(fileName.getToken(0, token, nIndex)); + buffer.append(o3tl::getToken(fileName, 0, token, nIndex)); if( nIndex == -1 ) break; @@ -272,7 +272,7 @@ bool FileStream::isValid() const void FileStream::createTempFile(const OString& sPath) { - OString sTmp("."); + OString sTmp("."_ostr); OUString sTmpPath; OUString sTmpName; |