Merge branch 'Tryibion-make-empty-stringview-const'

This commit is contained in:
Wojtek Figat
2025-08-14 22:15:58 +02:00
4 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
#include "StringView.h" #include "StringView.h"
#include "Engine/Core/Collections/Array.h" #include "Engine/Core/Collections/Array.h"
String String::Empty; const String String::Empty;
String::String(const StringAnsi& str) String::String(const StringAnsi& str)
{ {

View File

@@ -548,7 +548,7 @@ public:
/// <summary> /// <summary>
/// Instance of the empty string. /// Instance of the empty string.
/// </summary> /// </summary>
static String Empty; static const String Empty;
public: public:
/// <summary> /// <summary>

View File

@@ -9,7 +9,7 @@ StringView StringBuilder::ToStringView() const
return StringView(_data.Get(), _data.Count()); return StringView(_data.Get(), _data.Count());
} }
StringView StringView::Empty; const StringView StringView::Empty;
StringView::StringView(const String& str) StringView::StringView(const String& str)
: StringViewBase<Char>(str.Get(), str.Length()) : StringViewBase<Char>(str.Get(), str.Length())

View File

@@ -219,7 +219,7 @@ public:
/// <summary> /// <summary>
/// Instance of the empty string. /// Instance of the empty string.
/// </summary> /// </summary>
static StringView Empty; static const StringView Empty;
public: public:
/// <summary> /// <summary>