diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-26 14:40:14 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-26 14:40:14 +1000 |
commit | ed3d5dffc099b1c5bcb14451fffc63de1b6ac634 (patch) | |
tree | a65f78b8cfcfe475faccc568efb1975f4433c87e /source/core/StarStringView.cpp | |
parent | 79c5012033935b54d6ef94b2830aed12f92811c1 (diff) |
slight NetworkedAnimator drawables optimization
Diffstat (limited to 'source/core/StarStringView.cpp')
-rw-r--r-- | source/core/StarStringView.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/core/StarStringView.cpp b/source/core/StarStringView.cpp index 1bea5e5..d0e0e07 100644 --- a/source/core/StarStringView.cpp +++ b/source/core/StarStringView.cpp @@ -409,6 +409,10 @@ StringView& StringView::operator=(StringView s) { return *this; } +bool operator==(StringView s1, const char* s2) { + return s1.m_view.compare(s2) == 0; +} + bool operator==(StringView s1, StringView s2) { return s1.m_view == s2.m_view; } |