summaryrefslogtreecommitdiffstats
path: root/dtrans
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-09-07 16:09:50 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2018-09-07 22:04:50 +0200
commitb18747fcee1ba8744e5cd63791dc9f3eb6848a56 (patch)
tree51d0216e5f58822e820861499605e145e563dff5 /dtrans
parenttdf#119019 DOCX track changes: fix invisible delete and insert (diff)
downloadcore-b18747fcee1ba8744e5cd63791dc9f3eb6848a56.tar.gz
core-b18747fcee1ba8744e5cd63791dc9f3eb6848a56.zip
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.cxx2
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 );