diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-10 11:52:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-10 11:52:56 +0200 |
commit | 16889f355d1f7157bad84b42ad5a1b2b715ae767 (patch) | |
tree | 218d24294f668d54cd1dd8f78cc54414f5e51deb /include | |
parent | 0721f167a199c2bb2fa52f985665583598b68274 (diff) |
-Werror,-Wtautological-undefined-compare
Change-Id: Id73628a33ea4fe4cd749ebeef7b3cd0a87ff4118
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/svdmrkv.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx index 84c04a6f2ae8..02e695ce4785 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); } |