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

Stephan Bergmann sbergman at redhat.com
Tue Jun 10 02:50:07 PDT 2014


 sfx2/source/sidebar/Panel.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 0721f167a199c2bb2fa52f985665583598b68274
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jun 10 11:49:41 2014 +0200

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

diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx
index 1641254..04c8c97 100644
--- a/sfx2/source/sidebar/Panel.cxx
+++ b/sfx2/source/sidebar/Panel.cxx
@@ -154,10 +154,7 @@ void Panel::SetExpanded (const bool bIsExpanded)
 
 bool Panel::HasIdPredicate (const ::rtl::OUString& rsId) const
 {
-    if (this == NULL)
-        return false;
-    else
-        return msPanelId.equals(rsId);
+    return msPanelId.equals(rsId);
 }
 
 


More information about the Libreoffice-commits mailing list