summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-08 14:27:26 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-02-08 13:09:06 +0000
commitd282dec83e5d4aba749baba857e0f9b4573bc414 (patch)
tree8f970fca30168ff1c4afbec583c52e5c4ee6316d /sfx2/source/sidebar
parent8045c3931878c75da8e5229899ccbc895ccbed8a (diff)
revert part of "loplugin:unusedmethods"
<sberg> noelgrandin, just happen to look at b14224fe again; looks a bit scary to remove == or != from cases where both where declared <noelgrandin> sberg, ok, I can revert that part <sberg> noelgrandin, I guess that would be safer (there could be cases where now a different overload could kick in) Change-Id: I5dc41c05dc4439d5adee0e5b3e0a9e1dfb9de3af Reviewed-on: https://gerrit.libreoffice.org/22211 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source/sidebar')
-rw-r--r--sfx2/source/sidebar/Context.cxx6
-rw-r--r--sfx2/source/sidebar/EnumContext.cxx6
2 files changed, 12 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/Context.cxx b/sfx2/source/sidebar/Context.cxx
index 082eaf2c2fc3..9baf30b07777 100644
--- a/sfx2/source/sidebar/Context.cxx
+++ b/sfx2/source/sidebar/Context.cxx
@@ -68,6 +68,12 @@ sal_Int32 Context::EvaluateMatch (
return NoMatch;
}
+bool Context::operator== (const Context& rOther) const
+{
+ return msApplication.equals(rOther.msApplication)
+ && msContext.equals(rOther.msContext);
+}
+
bool Context::operator!= (const Context& rOther) const
{
return ( ! msApplication.equals(rOther.msApplication))
diff --git a/sfx2/source/sidebar/EnumContext.cxx b/sfx2/source/sidebar/EnumContext.cxx
index 56a22075f27e..db807004d800 100644
--- a/sfx2/source/sidebar/EnumContext.cxx
+++ b/sfx2/source/sidebar/EnumContext.cxx
@@ -95,6 +95,12 @@ bool EnumContext::operator== (const EnumContext& rOther)
&& meContext==rOther.meContext;
}
+bool EnumContext::operator!= (const EnumContext& rOther)
+{
+ return meApplication!=rOther.meApplication
+ || meContext!=rOther.meContext;
+}
+
void EnumContext::AddEntry (const ::rtl::OUString& rsName, const Application eApplication)
{
maApplicationMap[rsName] = eApplication;