mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Utf8View: Try fixing the travis-ci build
There's some overload ambiguity when doing Utf8View("literal")
This commit is contained in:
parent
6d3f52c4a4
commit
fb39e46d3d
2 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,11 @@ Utf8View::Utf8View(const StringView& string)
|
|||
{
|
||||
}
|
||||
|
||||
Utf8View::Utf8View(const char* string)
|
||||
: m_string(string)
|
||||
{
|
||||
}
|
||||
|
||||
const unsigned char* Utf8View::begin_ptr() const
|
||||
{
|
||||
return (const unsigned char*)m_string.characters_without_null_termination();
|
||||
|
|
|
@ -28,6 +28,7 @@ class Utf8View {
|
|||
public:
|
||||
explicit Utf8View(const String&);
|
||||
explicit Utf8View(const StringView&);
|
||||
explicit Utf8View(const char*);
|
||||
~Utf8View() {}
|
||||
|
||||
const StringView& as_string() const { return m_string; }
|
||||
|
|
Loading…
Reference in a new issue