diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-01 10:12:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-01 13:20:30 +0200 |
commit | a3e29642b9c118674ad88785500ce164aa103de9 (patch) | |
tree | cc56b0087f4e3529b75865f6bad0f9e5a2119f1d /idlc | |
parent | 720af01132d9e623389b82b5251c1687240d3569 (diff) |
loplugin:data (clang-cl)
Change-Id: Ib8b2bc1c5f7b27a646036ce23cae2b6a06edd038
Reviewed-on: https://gerrit.libreoffice.org/79922
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
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); } |