mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-18 17:07:37 -04:00
Merge branch 'vfs_normalized_view_string' into 'master'
Do not allow to construct NormalizedView from std::string See merge request OpenMW/openmw!4263
This commit is contained in:
commit
2743c4920e
@ -88,6 +88,10 @@ namespace VFS::Path
|
|||||||
|
|
||||||
NormalizedView(const Normalized& value) noexcept;
|
NormalizedView(const Normalized& value) noexcept;
|
||||||
|
|
||||||
|
explicit NormalizedView(const std::string&) = delete;
|
||||||
|
|
||||||
|
explicit NormalizedView(std::string&&) = delete;
|
||||||
|
|
||||||
constexpr std::string_view value() const noexcept { return mValue; }
|
constexpr std::string_view value() const noexcept { return mValue; }
|
||||||
|
|
||||||
friend constexpr bool operator==(const NormalizedView& lhs, const NormalizedView& rhs) = default;
|
friend constexpr bool operator==(const NormalizedView& lhs, const NormalizedView& rhs) = default;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user