diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-02-20 09:47:10 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 09:47:10 +1100 |
commit | 1c89042016c739815b2d70bcbef4673eef6b63e0 (patch) | |
tree | f7c8e96e744222857c613e5fd14720d2695613c3 /source/core/StarStringView.cpp | |
parent | 30e1871d3f44629e00a1f66d8164e3e62c7f889f (diff) | |
parent | 7c4fbad2ba7d79580a9ebbf9fde1de117be4d08e (diff) |
Merge pull request #19 from kblaschke/fix-compiler-warnings
Fixed a huge amount of Clang warnings
Diffstat (limited to 'source/core/StarStringView.cpp')
-rw-r--r-- | source/core/StarStringView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/StarStringView.cpp b/source/core/StarStringView.cpp index 4b45fe6..2bc9cd5 100644 --- a/source/core/StarStringView.cpp +++ b/source/core/StarStringView.cpp @@ -17,13 +17,13 @@ String& String::operator+=(std::string_view s) { StringView::StringView() {} StringView::StringView(StringView const& s) : m_view(s.m_view) {} -StringView::StringView(StringView&& s) noexcept : m_view(move(s.m_view)) {}; +StringView::StringView(StringView&& s) noexcept : m_view(std::move(s.m_view)) {}; StringView::StringView(String const& s) : m_view(s.utf8()) {}; StringView::StringView(char const* s) : m_view(s) {}; StringView::StringView(char const* s, size_t n) : m_view(s, n) {}; StringView::StringView(std::string_view const& s) : m_view(s) {}; -StringView::StringView(std::string_view&& s) noexcept : m_view(move(s)) {}; +StringView::StringView(std::string_view&& s) noexcept : m_view(std::move(s)) {}; StringView::StringView(std::string const& s) : m_view(s) {} StringView::StringView(Char const* s) : m_view((char const*)s, sizeof(*s)) {} |