[Libreoffice-commits] core.git: include/svx

Stephan Bergmann sbergman at redhat.com
Tue Jun 10 02:53:31 PDT 2014


 include/svx/svdmrkv.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 16889f355d1f7157bad84b42ad5a1b2b715ae767
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jun 10 11:52:56 2014 +0200

    -Werror,-Wtautological-undefined-compare
    
    Change-Id: Id73628a33ea4fe4cd749ebeef7b3cd0a87ff4118

diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx
index 84c04a6..02e695c 100644
--- a/include/svx/svdmrkv.hxx
+++ b/include/svx/svdmrkv.hxx
@@ -336,7 +336,7 @@ public:
     bool MarkPoints(const Rectangle& rRect, bool bUnmark=false) { return MarkPoints(&rRect,bUnmark); }
     bool UnmarkPoint(SdrHdl& rHdl) { return MarkPoint(rHdl,true); }
     bool UnMarkPoint(SdrHdl& rHdl) { return MarkPoint(rHdl,true); }
-    bool IsPointMarked(const SdrHdl& rHdl) const { ForceUndirtyMrkPnt(); return &rHdl!=NULL && rHdl.IsSelected(); }
+    bool IsPointMarked(const SdrHdl& rHdl) const { ForceUndirtyMrkPnt(); return rHdl.IsSelected(); }
     bool MarkAllPoints() { return MarkPoints(NULL,false); }
     bool UnmarkAllPoints() { return MarkPoints(NULL,true); }
     bool UnMarkAllPoints() { return MarkPoints(NULL,true); }
@@ -393,7 +393,7 @@ public:
     // Get the Hdl (handle) of a marked GluePoint. Non-marked
     // GluePoints don`t have handles
     SdrHdl* GetGluePointHdl(const SdrObject* pObj, sal_uInt16 nId) const;
-    bool IsGluePoint(const SdrHdl& rHdl) const { return &rHdl!=NULL && rHdl.GetKind()==HDL_GLUE; }
+    bool IsGluePoint(const SdrHdl& rHdl) const { return rHdl.GetKind()==HDL_GLUE; }
 
     // Mark all points within this rectangular (View coordinates)
     bool MarkGluePoints(const Rectangle& rRect) { return MarkGluePoints(&rRect,false); }


More information about the Libreoffice-commits mailing list