From 7deb36c36403933e1893e533a45ad625a0f9771a Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Tue, 27 Apr 2021 20:12:32 +0900 Subject: [PATCH] auxHintEventItem: using operator== instead of strncmp Change-Id: I4dc1dc868c53a0d410150cf2541bfec9713b97e8 --- src/e_test_event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e_test_event.h b/src/e_test_event.h index 811e55a..9f46f36 100644 --- a/src/e_test_event.h +++ b/src/e_test_event.h @@ -47,7 +47,7 @@ public: } Eina_Bool isSameID(int id) { return id == this->id; } - Eina_Bool isSameHint(std::string hint) { return !strncmp(hint.c_str(), this->hint.c_str(), hint.size()); } + Eina_Bool isSameHint(std::string hint) { return hint == this->hint; } Eina_Bool isSameVal(std::string val) { return val == this->val; } int getID() { return this->id; } std::string getHint() { return this->hint; } -- 2.7.4