]> git.saurik.com Git - apt.git/commit
operator==(char*, StringView) use StringView.operator==
authorJulian Andres Klode <jak@debian.org>
Fri, 8 Jan 2016 01:32:23 +0000 (02:32 +0100)
committerJulian Andres Klode <jak@debian.org>
Fri, 8 Jan 2016 01:33:36 +0000 (02:33 +0100)
commit0cc8987abf9f25c458833a0479bc4cb11b405e16
tree6b1deae96a2fb475b2db7f1df6d9d10342e5dce4
parenta0e3c0f55dc20b90f5f7d6d162135c9fef370686
operator==(char*, StringView) use StringView.operator==

Use the same path for both comparisons, as the operator== path
is faster than just calling compare() - it avoids any comparison
if the size differs.

Gbp-Dch: ignore
apt-pkg/contrib/string_view.h