[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Mon Mar 3 00:28:47 PST 2014


 sw/source/core/view/viewsh.cxx |    2 +-
 sw/source/core/view/vnew.cxx   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c31bc23d23ca5bd973cd9dd823e99cb42b440953
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Mar 3 09:28:10 2014 +0100

    loplugin:implicitboolconversion
    
    Change-Id: I8c8b8211416916d612ade161ea4a742166b95574

diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 7659f76..973576c 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -483,7 +483,7 @@ void SwViewShell::ImplUnlockPaint( sal_Bool bVirDev )
 
 sal_Bool SwViewShell::AddPaintRect( const SwRect & rRect )
 {
-    sal_Bool bRet = sal_False;
+    bool bRet = false;
     SwViewShell *pSh = this;
     do
     {
diff --git a/sw/source/core/view/vnew.cxx b/sw/source/core/view/vnew.cxx
index 990a5dfb..c509b3f 100644
--- a/sw/source/core/view/vnew.cxx
+++ b/sw/source/core/view/vnew.cxx
@@ -362,7 +362,7 @@ SwViewShell::~SwViewShell()
 
 sal_Bool SwViewShell::HasDrawView() const
 {
-    return Imp() ? Imp()->HasDrawView() : 0;
+    return Imp() && Imp()->HasDrawView();
 }
 
 void SwViewShell::MakeDrawView()


More information about the Libreoffice-commits mailing list