diff options
author | David Tardon <dtardon@redhat.com> | 2011-11-21 10:06:27 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-11-21 10:27:46 +0100 |
commit | 69dd81e2f26baf1e8362bee464a98b93c135e74e (patch) | |
tree | 5f6c4d1534955304a92cdb14c147131a28c0d08e /vcl | |
parent | 4d1c57a00ed20f49685504ac5289bc2c325060fc (diff) |
use correct rtl::OUString function
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/source/gdi/salgdi3.cxx | 2 | ||||
-rw-r--r-- | vcl/win/source/gdi/salprn.cxx | 2 | ||||
-rw-r--r-- | vcl/win/source/window/salframe.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx index c587235b7b5f..3512c5834885 100644 --- a/vcl/win/source/gdi/salgdi3.cxx +++ b/vcl/win/source/gdi/salgdi3.cxx @@ -2354,7 +2354,7 @@ bool WinSalGraphics::AddTempDevFont( ImplDevFontList* pFontList, aDFA.mbDevice = true; // Search Font Name in Cache - if( !rFontName.Len() && mpFontAttrCache ) + if( rFontName.isEmpty() && mpFontAttrCache ) aDFA = mpFontAttrCache->GetFontAttr( rFontFileURL ); // Retrieve font name from font resource diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx index 6a4c0e06573c..b8f79d8d1f75 100644 --- a/vcl/win/source/gdi/salprn.cxx +++ b/vcl/win/source/gdi/salprn.cxx @@ -1619,7 +1619,7 @@ sal_Bool WinSalPrinter::StartJob( const rtl::OUString* pFileName, // bring up a file choser if printing to file port but no file name given OUString aOutFileName; - if( mpInfoPrinter->maPortName.EqualsIgnoreCaseAscii( "FILE:" ) && !(pFileName && pFileName->Len()) ) + if( mpInfoPrinter->maPortName.EqualsIgnoreCaseAscii( "FILE:" ) && !(pFileName && !pFileName->isEmpty()) ) { uno::Reference< lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() ); diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx index 083746bce1ce..b648c7555804 100644 --- a/vcl/win/source/window/salframe.cxx +++ b/vcl/win/source/window/salframe.cxx @@ -1109,7 +1109,7 @@ void WinSalFrame::SetTitle( const rtl::OUString& rTitle ) { DBG_ASSERT( sizeof( WCHAR ) == sizeof( xub_Unicode ), "WinSalFrame::SetTitle(): WCHAR != sal_Unicode" ); - if ( !SetWindowTextW( mhWnd, reinterpret_cast<LPCWSTR>(rTitle.GetBuffer()) ) ) + if ( !SetWindowTextW( mhWnd, reinterpret_cast<LPCWSTR>(rTitle.getStr()) ) ) { ByteString aAnsiTitle = ImplSalGetWinAnsiString( rTitle ); SetWindowTextA( mhWnd, aAnsiTitle.GetBuffer() ); |