From 452361b0e7abf6b5cf23ad994f4e5c349193ded6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Pecka?= <peckato1@fit.cvut.cz>
Date: Mon, 24 Feb 2014 19:20:34 +0100
Subject: [PATCH] RegExp op!=

---
 alib/src/regexp/RegExp.cpp | 4 ++++
 alib/src/regexp/RegExp.h   | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/alib/src/regexp/RegExp.cpp b/alib/src/regexp/RegExp.cpp
index 65b63e54a0..3d8f2dbe13 100644
--- a/alib/src/regexp/RegExp.cpp
+++ b/alib/src/regexp/RegExp.cpp
@@ -98,6 +98,10 @@ bool RegExp::operator==(const RegExp& other) const {
 	return *(this->regExp) == *(other.regExp);
 }
 
+bool RegExp::operator!=(const RegExp& other) const {
+	return *(this->regExp) != *(other.regExp);
+}
+
 bool RegExp::operator>(const RegExp& other) const {
 	return *(this->regExp) > *(other.regExp);
 }
diff --git a/alib/src/regexp/RegExp.h b/alib/src/regexp/RegExp.h
index def92709e7..36b5de12ad 100644
--- a/alib/src/regexp/RegExp.h
+++ b/alib/src/regexp/RegExp.h
@@ -77,9 +77,10 @@ public:
 	 * @param regexp RegExp to print
 	 */
 	friend ostream& operator<<(ostream& out, RegExp& regexp);
-	
+
 	bool operator<(const RegExp&) const;
 	bool operator==(const RegExp&) const;
+	bool operator!=(const RegExp&) const;
 	bool operator>(const RegExp&) const;
 };
 
-- 
GitLab