mirror of
https://bitbucket.org/seefoe/src.git
synced 2026-10-12 02:13:43 -04:00
start making more fast code...
This commit is contained in:
+2
-2
@@ -168,7 +168,7 @@ void ChatAvatarCore::setLoginPriority(int loginPriority)
|
||||
m_loginPriority = loginPriority;
|
||||
}
|
||||
|
||||
void ChatAvatarCore::setEmail(const Plat_Unicode::String email)
|
||||
void ChatAvatarCore::setEmail(static const Plat_Unicode::String &email)
|
||||
{
|
||||
m_email = email;
|
||||
}
|
||||
@@ -178,7 +178,7 @@ void ChatAvatarCore::setInboxLimit(unsigned inboxLimit)
|
||||
m_inboxLimit = inboxLimit;
|
||||
}
|
||||
|
||||
void ChatAvatarCore::setStatusMessage(const Plat_Unicode::String statusMessage)
|
||||
void ChatAvatarCore::setStatusMessage(const Plat_Unicode::String &statusMessage)
|
||||
{
|
||||
m_statusMessage = statusMessage;
|
||||
}
|
||||
|
||||
@@ -47,9 +47,9 @@ namespace ChatSystem
|
||||
|
||||
void setAttributes(unsigned long attributes);
|
||||
void setLoginPriority(int loginPriority);
|
||||
void setEmail(const Plat_Unicode::String email);
|
||||
void setEmail(const Plat_Unicode::String &email);
|
||||
void setInboxLimit(unsigned inboxLimit);
|
||||
void setStatusMessage(const Plat_Unicode::String statusMessage);
|
||||
void setStatusMessage(const Plat_Unicode::String &statusMessage);
|
||||
|
||||
ChatAvatarCore &operator=(const ChatAvatarCore &rhs);
|
||||
|
||||
|
||||
@@ -216,7 +216,7 @@ namespace Plat_Unicode
|
||||
unsigned index = 0;
|
||||
s.resize(nstr.size());
|
||||
const NarrowString::const_iterator end = nstr.end();
|
||||
for (NarrowString::const_iterator iter = nstr.begin(); iter != end; iter++)
|
||||
for (NarrowString::const_iterator iter = nstr.begin(); iter != end; ++iter)
|
||||
{
|
||||
// Cast to unsigned char so that we don't pick up a negative value
|
||||
// for the unsigned short
|
||||
@@ -236,7 +236,7 @@ namespace Plat_Unicode
|
||||
unsigned index = 0;
|
||||
str.resize(nstr.size());
|
||||
const NarrowString::const_iterator end = nstr.end();
|
||||
for (NarrowString::const_iterator iter = nstr.begin(); iter != end; iter++)
|
||||
for (NarrowString::const_iterator iter = nstr.begin(); iter != end; ++iter)
|
||||
{
|
||||
str[index++] = *iter;
|
||||
}
|
||||
@@ -259,7 +259,7 @@ namespace Plat_Unicode
|
||||
unsigned index = 0;
|
||||
s.resize(str.size());
|
||||
const String::const_iterator end = str.end();
|
||||
for (String::const_iterator iter = str.begin(); iter != end; iter++)
|
||||
for (String::const_iterator iter = str.begin(); iter != end; ++iter)
|
||||
{
|
||||
s[index++] = (char)*iter;
|
||||
}
|
||||
@@ -281,7 +281,7 @@ namespace Plat_Unicode
|
||||
unsigned index = 0;
|
||||
nstr.resize(str.size());
|
||||
const String::const_iterator end = str.end();
|
||||
for (String::const_iterator iter = str.begin(); iter != end; iter++)
|
||||
for (String::const_iterator iter = str.begin(); iter != end; ++iter)
|
||||
{
|
||||
nstr[index++] = (char)*iter;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user