Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e5f67a0 authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Update FakedFont to use shared pointer

Bug: 179113771
Test: minikin_tests
Change-Id: I76082fd2ae00412726113654a87c7b59d47dd03d
parent 99c07561
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ AFont* _Nonnull AFontMatcher_match(
                static_cast<minikin::FamilyVariant>(matcher->mFamilyVariant),
                1  /* maxRun */);

    const minikin::Font* font = runs[0].fakedFont.font;
    const std::shared_ptr<minikin::Font>& font = runs[0].fakedFont.font;
    std::unique_ptr<AFont> result = std::make_unique<AFont>();
    const android::MinikinFontSkia* minikinFontSkia =
            reinterpret_cast<android::MinikinFontSkia*>(font->typeface().get());