aboutsummaryrefslogtreecommitdiff
path: root/src/ThemeBuilder/components/properties/PointPropertyEditor.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-09-07 03:34:56 +0800
committerYuqian Yang <crupest@crupest.life>2025-09-07 03:34:56 +0800
commit20123151d12a0b01453ab6a36c84e4d3e5ea9504 (patch)
tree27543f3e5bf6430298c94c38bad6ecc83dafdd47 /src/ThemeBuilder/components/properties/PointPropertyEditor.cpp
parent227118866190a7fe17b42e8c589c475781c69f33 (diff)
downloadcru-20123151d12a0b01453ab6a36c84e4d3e5ea9504.tar.gz
cru-20123151d12a0b01453ab6a36c84e4d3e5ea9504.tar.bz2
cru-20123151d12a0b01453ab6a36c84e4d3e5ea9504.zip
Remove some usage of my format.
Diffstat (limited to 'src/ThemeBuilder/components/properties/PointPropertyEditor.cpp')
-rw-r--r--src/ThemeBuilder/components/properties/PointPropertyEditor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ThemeBuilder/components/properties/PointPropertyEditor.cpp b/src/ThemeBuilder/components/properties/PointPropertyEditor.cpp
index d8487209..f2d10cf7 100644
--- a/src/ThemeBuilder/components/properties/PointPropertyEditor.cpp
+++ b/src/ThemeBuilder/components/properties/PointPropertyEditor.cpp
@@ -1,8 +1,9 @@
#include "PointPropertyEditor.h"
-#include "cru/base/Format.h"
#include "cru/ui/mapper/MapperRegistry.h"
#include "cru/ui/mapper/PointMapper.h"
+#include <format>
+
namespace cru::theme_builder::components::properties {
PointPropertyEditor::PointPropertyEditor() {
container_.AddChild(&label_);
@@ -33,6 +34,6 @@ void PointPropertyEditor::SetValue(const ui::Point& point,
}
String PointPropertyEditor::ConvertPointToString(const ui::Point& point) {
- return Format(u"{} {}", point.x, point.y);
+ return String::FromUtf8(std::format("{} {}", point.x, point.y));
}
} // namespace cru::theme_builder::components::properties