[Libreoffice-commits] .: vcl/win

Andras Timar timar at kemper.freedesktop.org
Wed Feb 1 06:30:46 PST 2012


 vcl/win/source/gdi/salprn.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit ff9a823e1007c3473072422e38512e3be0177fa4
Author: Andras Timar <atimar at suse.com>
Date:   Wed Feb 1 15:30:38 2012 +0100

    unused variable

diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index 4bafcd2..53b54ed 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -326,7 +326,6 @@ static sal_Bool ImplTestSalJobSetup( WinSalInfoPrinter* pPrinter,
             // this prevents using the jobsetup between different Windows versions (eg from XP to 9x) but we
             // can avoid potential driver crashes as their jobsetups are often not compatible
             // #110800#, #111151#, #112381#, #i16580#, #i14173# and perhaps #112375#
-            ByteString aPrinterNameA= ImplSalGetWinAnsiString( pPrinter->maDeviceName, TRUE );
             HANDLE hPrn;
             LPWSTR pPrinterNameW = reinterpret_cast<LPWSTR>(const_cast<sal_Unicode*>(pPrinter->maDeviceName.getStr()));
             if ( !OpenPrinterW( pPrinterNameW, &hPrn, NULL ) )
@@ -392,7 +391,6 @@ static sal_Bool ImplTestSalJobSetup( WinSalInfoPrinter* pPrinter,
 static sal_Bool ImplUpdateSalJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pSetupData,
                                    sal_Bool bIn, WinSalFrame* pVisibleDlgParent )
 {
-    ByteString aPrinterNameA = ImplSalGetWinAnsiString( pPrinter->maDeviceName, TRUE );
     HANDLE hPrn;
     LPWSTR pPrinterNameW = reinterpret_cast<LPWSTR>(const_cast<sal_Unicode*>(pPrinter->maDeviceName.getStr()));
     if ( !OpenPrinterW( pPrinterNameW, &hPrn, NULL ) )


More information about the Libreoffice-commits mailing list