summaryrefslogtreecommitdiff
path: root/helpcompiler/inc/HelpCompiler.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'helpcompiler/inc/HelpCompiler.hxx')
-rw-r--r--helpcompiler/inc/HelpCompiler.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpcompiler/inc/HelpCompiler.hxx b/helpcompiler/inc/HelpCompiler.hxx
index 12f6ada7b824..8d8a920da696 100644
--- a/helpcompiler/inc/HelpCompiler.hxx
+++ b/helpcompiler/inc/HelpCompiler.hxx
@@ -88,11 +88,11 @@ namespace fs
return std::string(tmp.getStr());
}
#ifdef _WIN32
- wchar_t const * native_file_string_w() const
+ std::wstring native_file_string_w() const
{
OUString ustrSystemPath;
osl::File::getSystemPathFromFileURL(data, ustrSystemPath);
- return reinterpret_cast<wchar_t const *>(ustrSystemPath.getStr());
+ return std::wstring(SAL_W(ustrSystemPath.getStr()));
}
#endif
std::string toUTF8() const