aboutsummaryrefslogtreecommitdiff
path: root/src/ThemeBuilder/components/properties/TextPropertyEditor.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-17 12:06:14 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-17 12:06:14 +0800
commit32aa6f116acc6e3e20a1ec76cef45b29f7005ad7 (patch)
tree892b71060a88b58d9293d78033000b05818783df /src/ThemeBuilder/components/properties/TextPropertyEditor.cpp
parentfaf77949e19dc0d01f75bf8abb783eda70328048 (diff)
downloadcru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.tar.gz
cru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.tar.bz2
cru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.zip
Remove String stage 1.
Diffstat (limited to 'src/ThemeBuilder/components/properties/TextPropertyEditor.cpp')
-rw-r--r--src/ThemeBuilder/components/properties/TextPropertyEditor.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ThemeBuilder/components/properties/TextPropertyEditor.cpp b/src/ThemeBuilder/components/properties/TextPropertyEditor.cpp
index 9854019c..4d34c9e6 100644
--- a/src/ThemeBuilder/components/properties/TextPropertyEditor.cpp
+++ b/src/ThemeBuilder/components/properties/TextPropertyEditor.cpp
@@ -4,7 +4,7 @@ namespace cru::theme_builder::components::properties {
TextPropertyEditor::TextPropertyEditor() {
editor_.TextChangeEvent()->AddHandler([this](std::nullptr_t) {
auto text_view = editor_.GetTextView();
- String error_message;
+ std::string error_message;
auto validation_result = Validate(text_view, &error_message);
if (validation_result) {
OnTextChanged(text_view);
@@ -14,9 +14,10 @@ TextPropertyEditor::TextPropertyEditor() {
TextPropertyEditor::~TextPropertyEditor() {}
-bool TextPropertyEditor::Validate(StringView text, String* error_message) {
+bool TextPropertyEditor::Validate(std::string_view text,
+ std::string* error_message) {
return true;
}
-void TextPropertyEditor::OnTextChanged(StringView text) {}
+void TextPropertyEditor::OnTextChanged(std::string_view text) {}
} // namespace cru::theme_builder::components::properties