[Libreoffice-commits] core.git: fpicker/source
Julien Nabet
serval2412 at yahoo.fr
Thu Sep 5 09:22:17 PDT 2013
fpicker/source/win32/misc/WinImplHelper.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 36baf31d2baa30c34c05b042283845ed348be888
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Aug 30 23:27:09 2013 +0200
fdo#42155: Replace the only use of CAutoUnicodeBuffer part1
Change-Id: Id6ea78148b7689199540407518f6bcb25af4450d
Reviewed-on: https://gerrit.libreoffice.org/5713
Reviewed-by: Michael Stahl <mstahl at redhat.com>
Tested-by: Michael Stahl <mstahl at redhat.com>
diff --git a/fpicker/source/win32/misc/WinImplHelper.cxx b/fpicker/source/win32/misc/WinImplHelper.cxx
index 5abdcb4..525773b 100644
--- a/fpicker/source/win32/misc/WinImplHelper.cxx
+++ b/fpicker/source/win32/misc/WinImplHelper.cxx
@@ -109,17 +109,17 @@ OUString SAL_CALL ListboxGetString( HWND hwnd, sal_Int32 aPosition )
// without trailing '\0' that's why += 1
lItem++;
- CAutoUnicodeBuffer aBuff( lItem );
+ std::vector<sal_Unicode> vec(lItem);
LRESULT lRet =
SendMessageW(
hwnd, CB_GETLBTEXT, aPosition,
- reinterpret_cast<LPARAM>(&aBuff) );
+ reinterpret_cast<LPARAM>(&vec[0]));
OSL_ASSERT( lRet != CB_ERR );
if ( CB_ERR != lRet )
- aString = OUString( aBuff, lRet );
+ aString = OUString(&vec[0], lRet);
}
return aString;
More information about the Libreoffice-commits
mailing list