]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/string_view.h
operator==(char*, StringView) use StringView.operator==
[apt.git] / apt-pkg / contrib / string_view.h
index 37a30a6dffcd32d225920ce1aaf6d724c6518374..5b6411a3338cf2b7cb29299e73726c510bbe571f 100644 (file)
@@ -107,6 +107,6 @@ public:
 }
 
 inline bool operator ==(const char *other, APT::StringView that);
-inline bool operator ==(const char *other, APT::StringView that) { return that.compare(other) == 0; }
+inline bool operator ==(const char *other, APT::StringView that) { return that.operator==(other); }
 
 #endif