formating

This commit is contained in:
Olivier Goffart 2020-06-04 14:05:00 +02:00
parent 7b8df5ca9d
commit ec8baa81f2
4 changed files with 21 additions and 22 deletions

View file

@ -28,7 +28,11 @@ struct SharedString
internal::sixtyfps_shared_string_from_bytes(this, s.data(), s.size());
return *this;
}
SharedString &operator=(SharedString &&other) { std::swap(inner, other.inner); return *this; }
SharedString &operator=(SharedString &&other)
{
std::swap(inner, other.inner);
return *this;
}
operator std::string_view() const { return internal::sixtyfps_shared_string_bytes(this); }
auto data() const -> const char * { return internal::sixtyfps_shared_string_bytes(this); }