summaryrefslogtreecommitdiff
path: root/idlc/source/options.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'idlc/source/options.cxx')
-rw-r--r--idlc/source/options.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx
index cbbd55b895a8..1ae892471ac3 100644
--- a/idlc/source/options.cxx
+++ b/idlc/source/options.cxx
@@ -192,7 +192,7 @@ OString convertIncPathtoShortWindowsPath(const OString& incPath) {
std::vector<sal_Unicode> vec(path.getLength() + 1);
//GetShortPathNameW only works if the file can be found!
const DWORD len = GetShortPathNameW(
- reinterpret_cast<LPCWSTR>(path.getStr()), reinterpret_cast<LPWSTR>(&vec[0]), path.getLength() + 1);
+ SAL_W(path.getStr()), SAL_W(&vec[0]), path.getLength() + 1);
if (len > 0)
{