[Libreoffice-commits] .: vcl/win

Andras Timar timar at kemper.freedesktop.org
Wed Feb 1 07:02:03 PST 2012


 vcl/win/source/window/salframe.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit e1e8bd19a6acf5526f6bb3d9006ecb37ff01c89d
Author: Andras Timar <atimar at suse.com>
Date:   Wed Feb 1 16:00:59 2012 +0100

    kill ByteString by dropping support of Win9x

diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 6c8dce8..c21f95b 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -1107,11 +1107,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.getStr()) ) )
-    {
-        ByteString aAnsiTitle = ImplSalGetWinAnsiString( rTitle );
-        SetWindowTextA( mhWnd, aAnsiTitle.GetBuffer() );
-    }
+    SetWindowTextW( mhWnd, reinterpret_cast<LPCWSTR>(rTitle.getStr()) )
 }
 
 // -----------------------------------------------------------------------


More information about the Libreoffice-commits mailing list