diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-08-30 23:27:09 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-09-05 16:21:57 +0000 |
commit | 36baf31d2baa30c34c05b042283845ed348be888 (patch) | |
tree | 692bd19552d4f5964eab25ce912b3cb5569636b0 /fpicker | |
parent | 267ddb1c291f391694f567874c9fe68fb0492931 (diff) |
fdo#42155: Replace the only use of CAutoUnicodeBuffer part1
Change-Id: Id6ea78148b7689199540407518f6bcb25af4450d
Reviewed-on: https://gerrit.libreoffice.org/5713
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/misc/WinImplHelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpicker/source/win32/misc/WinImplHelper.cxx b/fpicker/source/win32/misc/WinImplHelper.cxx index 5abdcb459e68..525773be01fe 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; |