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

Commit 31b81b3c authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am 6ed4b9df: Merge "Deep-copying sucks when all you want is a borrow" into mnc-dev

* commit '6ed4b9df':
  Deep-copying sucks when all you want is a borrow
parents 31ff4513 6ed4b9df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ FontStyle MinikinUtils::prepareMinikinPaint(MinikinPaint* minikinPaint, FontColl
    FontStyle resolved = resolvedFace->fStyle;

    /* Prepare minikin FontStyle */
    std::string lang = paint->getTextLocale();
    const std::string& lang = paint->getTextLocale();
    FontLanguage minikinLang(lang.c_str(), lang.size());
    FontVariant minikinVariant = (paint->getFontVariant() == VARIANT_ELEGANT) ? VARIANT_ELEGANT
            : VARIANT_COMPACT;
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ public:
        mTextLocale = textLocale;
    }

    std::string getTextLocale() const {
    const std::string& getTextLocale() const {
        return mTextLocale;
    }