AK: Add implicit String -> StringView conversion

And tidy up existing view() users.
This commit is contained in:
Robin Burchell
2019-06-02 12:19:21 +02:00
committed by Andreas Kling
parent decf1afbaa
commit b55b6cd7fc
6 changed files with 13 additions and 6 deletions

View File

@@ -27,6 +27,7 @@ public:
++m_length;
}
}
StringView(const AK::String& string);
bool is_empty() const { return m_length == 0; }
const char* characters() const { return m_characters; }