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

Stephan Bergmann sbergman at redhat.com
Thu Nov 12 05:40:24 PST 2015


 sw/source/uibase/docvw/PostItMgr.cxx  |    2 +-
 sw/source/uibase/docvw/SidebarWin.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3f12102dde34cf88275c7249df5b234f487c5026
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 12 14:40:01 2015 +0100

    loplugin:nullptr
    
    Change-Id: I8df633d53d3669b073dd20b631adc50570a066dd

diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index 9622a10..9feb691 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -1709,7 +1709,7 @@ bool SwPostItMgr::IsHit(const Point &aPointPixel)
 
 vcl::Window* SwPostItMgr::IsHitSidebarWindow(const Point& rPointLogic)
 {
-    vcl::Window* pRet = 0;
+    vcl::Window* pRet = nullptr;
 
     if (HasNotes() && ShowNotes())
     {
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index ee2ed58..cdf6838 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -284,7 +284,7 @@ vcl::Window* SwSidebarWin::IsHitWindow(const Point& rPointLogic)
     Rectangle aRectangleLogic(EditWin().PixelToLogic(GetPosPixel()), EditWin().PixelToLogic(GetSizePixel()));
     if (aRectangleLogic.IsInside(rPointLogic))
         return mpSidebarTextControl;
-    return 0;
+    return nullptr;
 }
 
 void SwSidebarWin::Draw(OutputDevice* pDev, const Point& rPt, const Size& rSz, DrawFlags nInFlags)


More information about the Libreoffice-commits mailing list