[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9
Maximiliano Curia
maxy at moszumanska.debian.org
Mon May 9 09:07:06 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=660ed0e
The following commit has been merged in the master branch:
commit 660ed0e61358460f8361c143d808be42fdf8813f
Author: Dan Vrátil <dvratil at redhat.com>
Date: Mon Sep 9 12:00:01 2013 +0200
Add LogEntity::operator!=()
---
KTp/Logger/log-entity.cpp | 5 +++++
KTp/Logger/log-entity.h | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/KTp/Logger/log-entity.cpp b/KTp/Logger/log-entity.cpp
index 20eb6af..ef3e3e6 100644
--- a/KTp/Logger/log-entity.cpp
+++ b/KTp/Logger/log-entity.cpp
@@ -95,6 +95,11 @@ bool LogEntity::operator==(const LogEntity& other)
return *d == *other.d;
}
+bool LogEntity::operator!=(const LogEntity& other)
+{
+ return !(operator==(other));
+}
+
bool LogEntity::isValid() const
{
return d->entityType != Tp::HandleTypeNone
diff --git a/KTp/Logger/log-entity.h b/KTp/Logger/log-entity.h
index 9db5feb..d5e9f76 100644
--- a/KTp/Logger/log-entity.h
+++ b/KTp/Logger/log-entity.h
@@ -75,6 +75,11 @@ class KTP_EXPORT LogEntity
bool operator==(const KTp::LogEntity &other);
/**
+ * Compare operator.
+ */
+ bool operator!=(const KTp::LogEntity &other);
+
+ /**
* Returns whether this entity is valid (i.e. whether entity type is valid and
* whether id is not empty).
*/
--
ktp-common-internals packaging
More information about the pkg-kde-commits
mailing list