mirror of https://github.com/axmolengine/axmol.git
#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:
parent
7afde8c7a6
commit
4d801ba1d0
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue