From 7117768feb2b2acb8d2498229cbaa4afbad377f1 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 18 Mar 2024 00:20:38 +0100 Subject: Text operations that return new Text are now const --- FoundationEx/src/Text.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FoundationEx/src/Text.cpp') diff --git a/FoundationEx/src/Text.cpp b/FoundationEx/src/Text.cpp index be03ce3..cba7720 100644 --- a/FoundationEx/src/Text.cpp +++ b/FoundationEx/src/Text.cpp @@ -598,7 +598,7 @@ Text::toUpper() } Text -Text::substring(int start, int length) +Text::substring(int start, int length) const { Text result; @@ -620,7 +620,7 @@ Text::substring(int start, int length) } Text -Text::trim() +Text::trim() const { Text result; @@ -638,7 +638,7 @@ Text::trim() } Text -Text::replace(const char* pattern, const char* substitution) +Text::replace(const char* pattern, const char* substitution) const { Text result; -- cgit v1.1