diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-18 21:25:44 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-18 21:25:44 +0800 |
| commit | df2dadbd0f0ace6e02281c84218537ec2ce5c47f (patch) | |
| tree | 56a360c16c4ba46658572305d3a444fb30d32272 /src/platform/graphics/cairo/PangoTextLayout.cpp | |
| parent | 3648f669cb42cdd9d232d60c8b9715dfbbe5b31a (diff) | |
| download | cru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.tar.gz cru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.tar.bz2 cru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.zip | |
Add overload of string_view for string utils. clean up codes.
Diffstat (limited to 'src/platform/graphics/cairo/PangoTextLayout.cpp')
| -rw-r--r-- | src/platform/graphics/cairo/PangoTextLayout.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/platform/graphics/cairo/PangoTextLayout.cpp b/src/platform/graphics/cairo/PangoTextLayout.cpp index 25d9f85d..98ad4f45 100644 --- a/src/platform/graphics/cairo/PangoTextLayout.cpp +++ b/src/platform/graphics/cairo/PangoTextLayout.cpp @@ -165,8 +165,7 @@ TextHitTestResult PangoTextLayout::HitTest(const Point& point) { if (result.trailing) { Index position_with_trailing; - string::Utf8NextCodePoint(text_.data(), text_.size(), result.position, - &position_with_trailing); + string::Utf8NextCodePoint(text_, result.position, &position_with_trailing); result.position_with_trailing = position_with_trailing; } else { result.position_with_trailing = result.position; |
