Message info
 
To:kde-commits@kde.org From:Daniele E. Domenichelli Subject:[ktp-accounts-kcm] src: const & Date:Fri, 30 Mar 2012 17:58:08 +0200 (CEST)
 

Git commit 3c7a900f46064a20332a137318fa606076c3eadf by Daniele E. Domenichelli.
Committed on 30/03/2012 at 16:59.
Pushed by ddomenichelli into branch 'master'.

const &

M +1 -1 src/change-icon-button.cpp
M +1 -1 src/change-icon-button.h
M +3 -3 src/edit-display-name-button.cpp
M +1 -1 src/edit-display-name-button.h

http://commits.kde.org/telepathy-accounts-kcm/3c7a900f46064a20332a137318fa606076c3eadf

diff --git a/src/change-icon-button.cpp b/src/change-icon-button.cpp
index 2885f9d..883b415 100644
--- a/src/change-icon-button.cpp
+++ b/src/change-icon-button.cpp
@@ -40,7 +40,7 @@ ChangeIconButton::~ChangeIconButton()
{
}

-void ChangeIconButton::setAccount(Tp::AccountPtr account)
+void ChangeIconButton::setAccount(const Tp::AccountPtr &account)
{
m_account = account;
}
diff --git a/src/change-icon-button.h b/src/change-icon-button.h
index cc80417..4a41da5 100644
--- a/src/change-icon-button.h
+++ b/src/change-icon-button.h
@@ -35,7 +35,7 @@ public:
explicit ChangeIconButton(QWidget* parent = 0);
virtual ~ChangeIconButton();

- void setAccount(Tp::AccountPtr account);
+ void setAccount(const Tp::AccountPtr &account);
Tp::AccountPtr account() const;

private Q_SLOTS:
diff --git a/src/edit-display-name-button.cpp b/src/edit-display-name-button.cpp
index ac516d3..4596e90 100644
--- a/src/edit-display-name-button.cpp
+++ b/src/edit-display-name-button.cpp
@@ -39,7 +39,7 @@ class EditDisplayNameDialog : public KDialog
Q_DISABLE_COPY(EditDisplayNameDialog)

public:
- EditDisplayNameDialog(Tp::AccountPtr account,
+ EditDisplayNameDialog(const Tp::AccountPtr &account,
QWidget* parent = 0,
Qt::WFlags flags = 0);
virtual ~EditDisplayNameDialog();
@@ -52,7 +52,7 @@ private:
};


-EditDisplayNameDialog::EditDisplayNameDialog(Tp::AccountPtr account,
+EditDisplayNameDialog::EditDisplayNameDialog(const Tp::AccountPtr &account,
QWidget* parent,
Qt::WFlags flags)
: KDialog(parent, flags),
@@ -125,7 +125,7 @@ EditDisplayNameButton::~EditDisplayNameButton()
{
}

-void EditDisplayNameButton::setAccount(Tp::AccountPtr account)
+void EditDisplayNameButton::setAccount(const Tp::AccountPtr &account)
{
m_account = account;
}
diff --git a/src/edit-display-name-button.h b/src/edit-display-name-button.h
index 159b63d..854789c 100644
--- a/src/edit-display-name-button.h
+++ b/src/edit-display-name-button.h
@@ -35,7 +35,7 @@ public:
explicit EditDisplayNameButton(QWidget *parent = 0);
virtual ~EditDisplayNameButton();

- void setAccount(Tp::AccountPtr account);
+ void setAccount(const Tp::AccountPtr &account);
Tp::AccountPtr account() const;

private Q_SLOTS: