summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircperson.cpp10
-rw-r--r--noncore/net/opieirc/ircperson.h10
2 files changed, 10 insertions, 10 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
@@ -14,3 +14,3 @@ IRCPerson::IRCPerson(const IRCPerson &person) {
-IRCPerson::IRCPerson(QString mask) {
+IRCPerson::IRCPerson(const QString &mask) {
IRCPerson();
@@ -19,3 +19,3 @@ IRCPerson::IRCPerson(QString mask) {
-void IRCPerson::fromMask(QString mask) {
+void IRCPerson::fromMask(const QString &mask) {
int sep1 = mask.find("!");
@@ -32,3 +32,3 @@ QString IRCPerson::toMask() {
-void IRCPerson::setNick(QString nick) {
+void IRCPerson::setNick(const QString &nick) {
m_nick = nick;
@@ -36,3 +36,3 @@ void IRCPerson::setNick(QString nick) {
-void IRCPerson::setUser(QString user) {
+void IRCPerson::setUser(const QString &user) {
m_user = user;
@@ -40,3 +40,3 @@ void IRCPerson::setUser(QString user) {
-void IRCPerson::setHost(QString host) {
+void IRCPerson::setHost(const QString &host) {
m_host = host;
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
@@ -34,3 +34,3 @@ public:
/* Create an IRCPerson from an IRC style description (nick!user@host) */
- IRCPerson(QString mask);
+ IRCPerson(const QString &mask);
/* Copy constructor */
@@ -38,6 +38,6 @@ public:
- void fromMask(QString mask);
- void setNick(QString name);
- void setUser(QString user);
- void setHost(QString host);
+ void fromMask(const QString &mask);
+ void setNick(const QString &name);
+ void setUser(const QString &user);
+ void setHost(const QString &host);
QString toMask();