summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2014-10-31 13:20:16 (GMT)
committerTobias Markmann <tm@ayena.de>2014-10-31 13:20:16 (GMT)
commit31cf91f23967a031972bb9d79890f0b2df5cbaa6 (patch)
tree61e7dae8f4047089b33def75cd989a9841ed5534 /Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp
parent9b762e1cf26cfe12cf601d9ea95cf91b3f95c799 (diff)
downloadswift-31cf91f23967a031972bb9d79890f0b2df5cbaa6.zip
swift-31cf91f23967a031972bb9d79890f0b2df5cbaa6.tar.bz2
Pass QString arguments by reference and not value.
Test-Information: Still builds with clang (3.6.0) on OS X (10.9.5). Change-Id: I3382e2165a5f14e13ecd48277baefaf728edbbe1
Diffstat (limited to 'Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp')
-rw-r--r--Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp b/Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp
index b29171f..46678f5 100644
--- a/Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp
+++ b/Swift/QtUI/QtVCardWidget/QtVCardPhotoAndNameFields.cpp
@@ -85,7 +85,7 @@ std::string QtVCardPhotoAndNameFields::getAvatarType() const {
return ui->avatarWidget->getAvatarType();
}
-void QtVCardPhotoAndNameFields::setFormattedName(const QString formattedName) {
+void QtVCardPhotoAndNameFields::setFormattedName(const QString& formattedName) {
ui->lineEditFN->setText(formattedName);
}
@@ -93,7 +93,7 @@ QString QtVCardPhotoAndNameFields::getFormattedName() const {
return ui->lineEditFN->text();
}
-void QtVCardPhotoAndNameFields::setNickname(const QString nickname) {
+void QtVCardPhotoAndNameFields::setNickname(const QString& nickname) {
ui->lineEditNICKNAME->setText(nickname);
}
@@ -101,7 +101,7 @@ QString QtVCardPhotoAndNameFields::getNickname() const {
return ui->lineEditNICKNAME->text();
}
-void QtVCardPhotoAndNameFields::setPrefix(const QString prefix) {
+void QtVCardPhotoAndNameFields::setPrefix(const QString& prefix) {
ui->lineEditPREFIX->setText(prefix);
}
@@ -109,7 +109,7 @@ QString QtVCardPhotoAndNameFields::getPrefix() const {
return ui->lineEditPREFIX->text();
}
-void QtVCardPhotoAndNameFields::setGivenName(const QString givenName) {
+void QtVCardPhotoAndNameFields::setGivenName(const QString& givenName) {
ui->lineEditGIVEN->setText(givenName);
}
@@ -117,7 +117,7 @@ QString QtVCardPhotoAndNameFields::getGivenName() const {
return ui->lineEditGIVEN->text();
}
-void QtVCardPhotoAndNameFields::setMiddleName(const QString middleName) {
+void QtVCardPhotoAndNameFields::setMiddleName(const QString& middleName) {
ui->lineEditMIDDLE->setText(middleName);
}
@@ -125,7 +125,7 @@ QString QtVCardPhotoAndNameFields::getMiddleName() const {
return ui->lineEditMIDDLE->text();
}
-void QtVCardPhotoAndNameFields::setFamilyName(const QString familyName) {
+void QtVCardPhotoAndNameFields::setFamilyName(const QString& familyName) {
ui->lineEditFAMILY->setText(familyName);
}
@@ -133,7 +133,7 @@ QString QtVCardPhotoAndNameFields::getFamilyName() const {
return ui->lineEditFAMILY->text();
}
-void QtVCardPhotoAndNameFields::setSuffix(const QString suffix) {
+void QtVCardPhotoAndNameFields::setSuffix(const QString& suffix) {
ui->lineEditSUFFIX->setText(suffix);
}