summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircperson.cpp
Unidiff
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
@@ -12,12 +12,12 @@ IRCPerson::IRCPerson(const IRCPerson &person) {
12 m_host = person.m_host; 12 m_host = person.m_host;
13} 13}
14 14
15IRCPerson::IRCPerson(QString mask) { 15IRCPerson::IRCPerson(const QString &mask) {
16 IRCPerson(); 16 IRCPerson();
17 fromMask(mask); 17 fromMask(mask);
18} 18}
19 19
20void IRCPerson::fromMask(QString mask) { 20void IRCPerson::fromMask(const QString &mask) {
21 int sep1 = mask.find("!"); 21 int sep1 = mask.find("!");
22 int sep2 = mask.find("@"); 22 int sep2 = mask.find("@");
23 23
@@ -30,15 +30,15 @@ QString IRCPerson::toMask() {
30 return m_nick + "!" + m_user + "@" + m_host; 30 return m_nick + "!" + m_user + "@" + m_host;
31} 31}
32 32
33void IRCPerson::setNick(QString nick) { 33void IRCPerson::setNick(const QString &nick) {
34 m_nick = nick; 34 m_nick = nick;
35} 35}
36 36
37void IRCPerson::setUser(QString user) { 37void IRCPerson::setUser(const QString &user) {
38 m_user = user; 38 m_user = user;
39} 39}
40 40
41void IRCPerson::setHost(QString host) { 41void IRCPerson::setHost(const QString &host) {
42 m_host = host; 42 m_host = host;
43} 43}
44 // -- GETTER FUNCS -- 44 // -- GETTER FUNCS --