auxHintEventItem: using operator== instead of strncmp 55/257555/1
authorJunseok, Kim <juns.kim@samsung.com>
Tue, 27 Apr 2021 11:12:32 +0000 (20:12 +0900)
committerJunseok, Kim <juns.kim@samsung.com>
Tue, 27 Apr 2021 11:12:32 +0000 (20:12 +0900)
Change-Id: I4dc1dc868c53a0d410150cf2541bfec9713b97e8

src/e_test_event.h

index 811e55a..9f46f36 100644 (file)
@@ -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; }