[Libreoffice-commits] core.git: vcl/win

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 21 08:25:14 UTC 2020


 vcl/win/gdi/salprn.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 10c65afcdad46ed02e377824bc43dbc384d52340
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Aug 21 09:19:00 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Aug 21 10:24:33 2020 +0200

    loplugin:simplifybool (clang-cl)
    
    Change-Id: I88f659da3d80bf83f544edd89933b582f06b2556
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101130
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx
index 053c503b1671..3f27d999d845 100644
--- a/vcl/win/gdi/salprn.cxx
+++ b/vcl/win/gdi/salprn.cxx
@@ -1470,7 +1470,7 @@ bool WinSalPrinter::StartJob( const OUString* pFileName,
 
     // bring up a file chooser if printing to file port but no file name given
     OUString aOutFileName;
-    if( mpInfoPrinter->maPortName.equalsIgnoreAsciiCase( "FILE:" ) && !(pFileName && !pFileName->isEmpty()) )
+    if( mpInfoPrinter->maPortName.equalsIgnoreAsciiCase( "FILE:" ) && (!pFileName || pFileName->isEmpty()) )
     {
 
         uno::Reference< uno::XComponentContext > xContext( ::comphelper::getProcessComponentContext() );


More information about the Libreoffice-commits mailing list