diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-09-07 16:09:50 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-09-07 22:04:50 +0200 |
commit | b18747fcee1ba8744e5cd63791dc9f3eb6848a56 (patch) | |
tree | 51d0216e5f58822e820861499605e145e563dff5 /dtrans | |
parent | 694a6389e84d5b416cde6dde2d5eaa589a0a6493 (diff) |
Fix some std::unique_ptr array allocs
Found by reviewing the output of and the code around
git grep -n "unique_ptr.*new.*\[.*\]" | grep -v "\[\]"
The onlineupdater code needs a little bit more attention.
Change-Id: I8b70c7da7db60af52bfac12314a21602ede8bfc0
Reviewed-on: https://gerrit.libreoffice.org/60162
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'dtrans')
-rw-r--r-- | dtrans/source/win32/misc/ImplHelper.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dtrans/source/win32/misc/ImplHelper.cxx b/dtrans/source/win32/misc/ImplHelper.cxx index 4b98b4850006..f933701ce961 100644 --- a/dtrans/source/win32/misc/ImplHelper.cxx +++ b/dtrans/source/win32/misc/ImplHelper.cxx @@ -95,7 +95,7 @@ OUString getWinCPFromLocaleId( LCID lcid, LCTYPE lctype ) if ( nResult ) { - std::unique_ptr<wchar_t> buff( new wchar_t[nResult] ); + std::unique_ptr<wchar_t[]> buff( new wchar_t[nResult] ); // Now get the actual data nResult = GetLocaleInfoW( lcid, lctype, buff.get(), nResult ); |