#Fix use const std::string& instead a temp string (#16392)

* #Fix use const std::string& instead a temp string

* #Fix use const std::string& instead a temp string
This commit is contained in:
halx99 2016-08-22 09:43:41 +08:00 committed by minggo
parent 7afde8c7a6
commit 4d801ba1d0
2 changed files with 2 additions and 2 deletions

View File

@ -698,7 +698,7 @@ void TextFieldTTF::setPasswordTextStyle(const std::string &text)
} }
} }
std::string TextFieldTTF::getPasswordTextStyle()const const std::string& TextFieldTTF::getPasswordTextStyle() const
{ {
return _passwordStyleText; return _passwordStyleText;
} }

View File

@ -227,7 +227,7 @@ public:
*/ */
virtual void setSecureTextEntry(bool value); virtual void setSecureTextEntry(bool value);
virtual void setPasswordTextStyle(const std::string& text); virtual void setPasswordTextStyle(const std::string& text);
std::string getPasswordTextStyle() const; const std::string& getPasswordTextStyle() const;
/** /**
* Query whether the currently display mode is secure text entry or not. * Query whether the currently display mode is secure text entry or not.