aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/render
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-09-15 19:17:38 +0800
committercrupest <crupest@outlook.com>2021-09-15 19:17:38 +0800
commitcb981f5a337f3a8fc9d450b891c358c2b8dc29d3 (patch)
tree5216a09c127e534edfebca22f8b91d876812f6b4 /include/cru/ui/render
parent105e4ad880a810300bf4b3a0a0752ae58924667b (diff)
downloadcru-cb981f5a337f3a8fc9d450b891c358c2b8dc29d3.tar.gz
cru-cb981f5a337f3a8fc9d450b891c358c2b8dc29d3.tar.bz2
cru-cb981f5a337f3a8fc9d450b891c358c2b8dc29d3.zip
...
Diffstat (limited to 'include/cru/ui/render')
-rw-r--r--include/cru/ui/render/MeasureRequirement.hpp5
-rw-r--r--include/cru/ui/render/RenderObject.hpp1
2 files changed, 2 insertions, 4 deletions
diff --git a/include/cru/ui/render/MeasureRequirement.hpp b/include/cru/ui/render/MeasureRequirement.hpp
index ff9dd6e3..90d02a02 100644
--- a/include/cru/ui/render/MeasureRequirement.hpp
+++ b/include/cru/ui/render/MeasureRequirement.hpp
@@ -115,9 +115,8 @@ class MeasureLength final {
}
}
- std::u16string ToDebugString() const {
- return IsSpecified() ? ToUtf16String(GetLengthOrUndefined())
- : u"UNSPECIFIED";
+ String ToDebugString() const {
+ return IsSpecified() ? ToString(GetLengthOrUndefined()) : u"UNSPECIFIED";
}
private:
diff --git a/include/cru/ui/render/RenderObject.hpp b/include/cru/ui/render/RenderObject.hpp
index 622c27f2..0dd95c71 100644
--- a/include/cru/ui/render/RenderObject.hpp
+++ b/include/cru/ui/render/RenderObject.hpp
@@ -4,7 +4,6 @@
#include "MeasureRequirement.hpp"
#include "cru/common/Base.hpp"
#include "cru/common/Event.hpp"
-#include "cru/platform/GraphBase.hpp"
#include "cru/ui/Base.hpp"
#include <cstddef>