[Libreoffice-commits] .: vcl/win
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Nov 21 03:03:01 PST 2011
vcl/win/source/app/salinfo.cxx | 4 ++--
vcl/win/source/gdi/salprn.cxx | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit e1de8237d5f8d5ac1db3c6eb4567eaffe2e7bd86
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Nov 21 11:01:56 2011 +0000
these need to be getStr post OUString-ization
diff --git a/vcl/win/source/app/salinfo.cxx b/vcl/win/source/app/salinfo.cxx
index 9ac68b0..2db9090 100644
--- a/vcl/win/source/app/salinfo.cxx
+++ b/vcl/win/source/app/salinfo.cxx
@@ -246,8 +246,8 @@ int WinSalSystem::ShowNativeMessageBox(const rtl::OUString& rTitle, const rtl::O
ImplHideSplash();
return MessageBoxW(
0,
- reinterpret_cast<LPCWSTR>(rMessage.GetBuffer()),
- reinterpret_cast<LPCWSTR>(rTitle.GetBuffer()),
+ reinterpret_cast<LPCWSTR>(rMessage.getStr()),
+ reinterpret_cast<LPCWSTR>(rTitle.getStr()),
nFlags);
}
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index b8f79d8..0da87bd 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -210,7 +210,7 @@ void WinSalInstance::GetPrinterQueueInfo( ImplPrnQueueList* pList )
void WinSalInstance::GetPrinterQueueState( SalPrinterQueueInfo* pInfo )
{
HANDLE hPrinter = 0;
- LPWSTR pPrnName = reinterpret_cast<LPWSTR>(const_cast<sal_Unicode*>(pInfo->maPrinterName.GetBuffer()));
+ LPWSTR pPrnName = reinterpret_cast<LPWSTR>(const_cast<sal_Unicode*>(pInfo->maPrinterName.getStr()));
if( OpenPrinterW( pPrnName, &hPrinter, NULL ) )
{
DWORD nBytes = 0;
More information about the Libreoffice-commits
mailing list