summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/sidebar/Panel.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx
index 16412544c5da..04c8c9746d53 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);
}