diff options
author | crupest <crupest@outlook.com> | 2020-04-02 20:51:19 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-04-02 20:51:19 +0800 |
commit | e38ea3de29ede0e45aab8e595da5e8e3782a396d (patch) | |
tree | 1e0fae414abea5b5cf1fd4fb4194f8c6a9795d7e /src/win/graph/direct/text_layout.cpp | |
parent | 7dd9494e957af8280f7221395333f886c500edf5 (diff) | |
download | cru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.tar.gz cru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.tar.bz2 cru-e38ea3de29ede0e45aab8e595da5e8e3782a396d.zip |
...
Diffstat (limited to 'src/win/graph/direct/text_layout.cpp')
-rw-r--r-- | src/win/graph/direct/text_layout.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/win/graph/direct/text_layout.cpp b/src/win/graph/direct/text_layout.cpp index 59101163..6a6a2c45 100644 --- a/src/win/graph/direct/text_layout.cpp +++ b/src/win/graph/direct/text_layout.cpp @@ -7,7 +7,6 @@ #include "cru/win/graph/direct/font.hpp" #include "cru/win/string.hpp" -#include <cassert> #include <utility> namespace cru::platform::graph::win::direct { @@ -18,7 +17,7 @@ DWriteTextLayout::DWriteTextLayout(DirectGraphFactory* factory, std::shared_ptr<IFont> font, std::string text) : DirectGraphResource(factory), text_(std::move(text)) { - assert(font); + Expects(font); font_ = CheckPlatform<DWriteFont>(font, GetPlatformId()); w_text_ = cru::platform::win::ToUtf16String(text_); |