summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircperson.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/opieirc/ircperson.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircperson.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/net/opieirc/ircperson.cpp b/noncore/net/opieirc/ircperson.cpp
index 1dd2679..f673dee 100644
--- a/noncore/net/opieirc/ircperson.cpp
+++ b/noncore/net/opieirc/ircperson.cpp
@@ -13,10 +13,10 @@ IRCPerson::IRCPerson(const IRCPerson &person) {
}
-IRCPerson::IRCPerson(QString mask) {
+IRCPerson::IRCPerson(const QString &mask) {
IRCPerson();
fromMask(mask);
}
-void IRCPerson::fromMask(QString mask) {
+void IRCPerson::fromMask(const QString &mask) {
int sep1 = mask.find("!");
int sep2 = mask.find("@");
@@ -31,13 +31,13 @@ QString IRCPerson::toMask() {
}
-void IRCPerson::setNick(QString nick) {
+void IRCPerson::setNick(const QString &nick) {
m_nick = nick;
}
-void IRCPerson::setUser(QString user) {
+void IRCPerson::setUser(const QString &user) {
m_user = user;
}
-void IRCPerson::setHost(QString host) {
+void IRCPerson::setHost(const QString &host) {
m_host = host;
}