aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/TextBlock.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-07-05 18:13:10 +0800
committercrupest <crupest@outlook.com>2020-07-05 18:13:10 +0800
commitce56ab59a6d68c220fcc47c6977c618eaa43de7a (patch)
treed6775d0ffa6f4fde00e69ed82192bc6c5b25d45b /src/ui/controls/TextBlock.cpp
parente10ef322e5f6268aec5d7717a82fceb42607a000 (diff)
downloadcru-ce56ab59a6d68c220fcc47c6977c618eaa43de7a.tar.gz
cru-ce56ab59a6d68c220fcc47c6977c618eaa43de7a.tar.bz2
cru-ce56ab59a6d68c220fcc47c6977c618eaa43de7a.zip
...
Diffstat (limited to 'src/ui/controls/TextBlock.cpp')
-rw-r--r--src/ui/controls/TextBlock.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/controls/TextBlock.cpp b/src/ui/controls/TextBlock.cpp
index f77e279b..5ec15796 100644
--- a/src/ui/controls/TextBlock.cpp
+++ b/src/ui/controls/TextBlock.cpp
@@ -1,10 +1,10 @@
#include "cru/ui/controls/TextBlock.hpp"
+#include "TextControlService.hpp"
+#include "cru/ui/UiManager.hpp"
#include "cru/ui/render/CanvasRenderObject.hpp"
#include "cru/ui/render/StackLayoutRenderObject.hpp"
#include "cru/ui/render/TextRenderObject.hpp"
-#include "cru/ui/UiManager.hpp"
-#include "TextControlService.hpp"
namespace cru::ui::controls {
using render::CanvasRenderObject;
@@ -38,7 +38,7 @@ void TextBlock::SetText(std::string text) {
text_render_object_->SetText(std::move(text));
}
-render::TextRenderObject* TextBlock::GetTextRenderObject() {
+gsl::not_null<render::TextRenderObject*> TextBlock::GetTextRenderObject() {
return text_render_object_.get();
}
} // namespace cru::ui::controls