Changed some property names to match conventions.

Changed m_pSecureTextEntry to m_bSecureTextEntry and renamed
getSecureTextEntry to isSecureTextEntry
This commit is contained in:
Marcel Bloemendaal 2013-04-15 09:11:04 +02:00
parent 6d6a0f23eb
commit 76b222978c
2 changed files with 8 additions and 8 deletions

View File

@ -55,7 +55,7 @@ CCTextFieldTTF::CCTextFieldTTF()
, m_nCharCount(0)
, m_pInputText(new std::string)
, m_pPlaceHolder(new std::string) // prevent CCLabelTTF initWithString assertion
, m_pSecureTextEntry(false)
, m_bSecureTextEntry(false)
{
m_ColorSpaceHolder.r = m_ColorSpaceHolder.g = m_ColorSpaceHolder.b = 127;
}
@ -297,7 +297,7 @@ void CCTextFieldTTF::setString(const char *text)
{
m_pInputText = new std::string(text);
displayText = *m_pInputText;
if (m_pSecureTextEntry)
if (m_bSecureTextEntry)
{
displayText = "";
length = m_pInputText->length();
@ -349,16 +349,16 @@ const char * CCTextFieldTTF::getPlaceHolder(void)
// secureTextEntry
void CCTextFieldTTF::setSecureTextEntry(bool value)
{
if (m_pSecureTextEntry != value)
if (m_bSecureTextEntry != value)
{
m_pSecureTextEntry = value;
m_bSecureTextEntry = value;
setString(getString());
}
}
bool CCTextFieldTTF::getSecureTextEntry()
bool CCTextFieldTTF::isSecureTextEntry()
{
return m_pSecureTextEntry;
return m_bSecureTextEntry;
}
NS_CC_END

View File

@ -147,9 +147,9 @@ protected:
ccColor3B m_ColorSpaceHolder;
public:
virtual void setSecureTextEntry(bool value);
virtual bool getSecureTextEntry();
virtual bool isSecureTextEntry();
protected:
bool m_pSecureTextEntry;
bool m_bSecureTextEntry;
protected:
virtual void draw();