diff options
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/options.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx index bfd273ace1ba..c3a19a365267 100644 --- a/idlc/source/options.cxx +++ b/idlc/source/options.cxx @@ -193,11 +193,11 @@ static 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( - o3tl::toW(path.getStr()), o3tl::toW(&vec[0]), path.getLength() + 1); + o3tl::toW(path.getStr()), o3tl::toW(vec.data()), path.getLength() + 1); if (len > 0) { - OUString ret(&vec[0], len); + OUString ret(vec.data(), len); return OUStringToOString(ret, RTL_TEXTENCODING_UTF8); } |