Browse Source

Bitcoin-Qt: use reference in setAddress_SM() and setAddress_VM()

0.8
Philip Kaufmann 12 years ago
parent
commit
17c1f7f04f
  1. 4
      src/qt/signverifymessagedialog.cpp
  2. 4
      src/qt/signverifymessagedialog.h

4
src/qt/signverifymessagedialog.cpp

@ -55,13 +55,13 @@ void SignVerifyMessageDialog::setModel(WalletModel *model)
this->model = model; this->model = model;
} }
void SignVerifyMessageDialog::setAddress_SM(QString address) void SignVerifyMessageDialog::setAddress_SM(const QString &address)
{ {
ui->addressIn_SM->setText(address); ui->addressIn_SM->setText(address);
ui->messageIn_SM->setFocus(); ui->messageIn_SM->setFocus();
} }
void SignVerifyMessageDialog::setAddress_VM(QString address) void SignVerifyMessageDialog::setAddress_VM(const QString &address)
{ {
ui->addressIn_VM->setText(address); ui->addressIn_VM->setText(address);
ui->messageIn_VM->setFocus(); ui->messageIn_VM->setFocus();

4
src/qt/signverifymessagedialog.h

@ -20,8 +20,8 @@ public:
~SignVerifyMessageDialog(); ~SignVerifyMessageDialog();
void setModel(WalletModel *model); void setModel(WalletModel *model);
void setAddress_SM(QString address); void setAddress_SM(const QString &address);
void setAddress_VM(QString address); void setAddress_VM(const QString &address);
void showTab_SM(bool fShow); void showTab_SM(bool fShow);
void showTab_VM(bool fShow); void showTab_VM(bool fShow);

Loading…
Cancel
Save