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

* commit '31b81b3cb94befad39d1632d449b0a4d6eedf604':
  Deep-copying sucks when all you want is a borrow
This commit is contained in:
John Reck
2015-07-10 01:54:12 +00:00
committed by Android Git Automerger
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -57,7 +57,7 @@ public:
mTextLocale = textLocale;
}
std::string getTextLocale() const {
const std::string& getTextLocale() const {
return mTextLocale;
}