diff options
author | Adasauce <adasauce@with.parts> | 2020-02-19 15:00:49 -0400 |
---|---|---|
committer | Adasauce <adasauce@with.parts> | 2020-02-19 15:00:49 -0400 |
commit | 53138d7f5c51cf37d9f92dda49a271ed2c953678 (patch) | |
tree | 8cb0311f56819fb7b1217e4804afb77c3d5da7fd | |
parent | Review changes to UserSettingsPage (diff) | |
download | nheko-53138d7f5c51cf37d9f92dda49a271ed2c953678.tar.xz |
Clean up placeholder string
use QString instead of std::string (QStringLiteral doesn't have a constructor with int, str.) remove temp variable, and just deal with it inline.
-rw-r--r-- | src/UserSettingsPage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index 5ab73fdf..2722001f 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -258,8 +258,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge deviceFingerprintValue_->setTextInteractionFlags(Qt::TextSelectableByMouse); deviceFingerprintValue_->setFont(monospaceFont); - std::string fingerprintPlaceHolder_(44, 'x'); - deviceFingerprintValue_->setText(utils::humanReadableFingerprint(fingerprintPlaceHolder_)); + deviceFingerprintValue_->setText(utils::humanReadableFingerprint(QString(44, 'X'))); auto sessionKeysLabel = new QLabel{tr("Session Keys"), this}; sessionKeysLabel->setFont(font); |