author | skyhusker <skyhusker> | 2005-01-26 22:22:55 (UTC) |
---|---|---|
committer | skyhusker <skyhusker> | 2005-01-26 22:22:55 (UTC) |
commit | 1752010f14bb7806bae6f83b349c9896a3005c75 (patch) (unidiff) | |
tree | a43902f058fef91ed136622bb4f9964f1aa5441f /noncore/net/opieirc/ircperson.h | |
parent | d3ca4c7807c7a22837e481c1016c9814a68e00fb (diff) | |
download | opie-1752010f14bb7806bae6f83b349c9896a3005c75.zip opie-1752010f14bb7806bae6f83b349c9896a3005c75.tar.gz opie-1752010f14bb7806bae6f83b349c9896a3005c75.tar.bz2 |
Changed argument passing from value to const reference
Diffstat (limited to 'noncore/net/opieirc/ircperson.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircperson.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/net/opieirc/ircperson.h b/noncore/net/opieirc/ircperson.h index 38732c4..9854f95 100644 --- a/noncore/net/opieirc/ircperson.h +++ b/noncore/net/opieirc/ircperson.h | |||
@@ -29,20 +29,20 @@ | |||
29 | */ | 29 | */ |
30 | 30 | ||
31 | class IRCPerson { | 31 | class IRCPerson { |
32 | public: | 32 | public: |
33 | IRCPerson(); | 33 | IRCPerson(); |
34 | /* Create an IRCPerson from an IRC style description (nick!user@host) */ | 34 | /* Create an IRCPerson from an IRC style description (nick!user@host) */ |
35 | IRCPerson(QString mask); | 35 | IRCPerson(const QString &mask); |
36 | /* Copy constructor */ | 36 | /* Copy constructor */ |
37 | IRCPerson(const IRCPerson &person); | 37 | IRCPerson(const IRCPerson &person); |
38 | 38 | ||
39 | void fromMask(QString mask); | 39 | void fromMask(const QString &mask); |
40 | void setNick(QString name); | 40 | void setNick(const QString &name); |
41 | void setUser(QString user); | 41 | void setUser(const QString &user); |
42 | void setHost(QString host); | 42 | void setHost(const QString &host); |
43 | QString toMask(); | 43 | QString toMask(); |
44 | QString nick(); | 44 | QString nick(); |
45 | QString user(); | 45 | QString user(); |
46 | QString host(); | 46 | QString host(); |
47 | protected: | 47 | protected: |
48 | QString m_nick; | 48 | QString m_nick; |