mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor(profile): use const name reference in Profile()
This commit is contained in:
parent
2d1d5b2a3e
commit
d65aeffe07
|
@ -97,7 +97,7 @@ void Profile::initCore(const QByteArray& toxsave, ICoreSettings& s, bool isNewPr
|
|||
Qt::ConnectionType::QueuedConnection);
|
||||
}
|
||||
|
||||
Profile::Profile(QString name, const QString& password, bool isNewProfile,
|
||||
Profile::Profile(const QString& name, const QString& password, bool isNewProfile,
|
||||
const QByteArray& toxsave, std::unique_ptr<ToxEncrypt> passkey)
|
||||
: name{name}
|
||||
, passkey{std::move(passkey)}
|
||||
|
|
|
@ -98,7 +98,7 @@ private slots:
|
|||
void onAvatarOfferReceived(uint32_t friendId, uint32_t fileId, const QByteArray& avatarHash);
|
||||
|
||||
private:
|
||||
Profile(QString name, const QString& password, bool newProfile, const QByteArray& toxsave,
|
||||
Profile(const QString& name, const QString& password, bool newProfile, const QByteArray& toxsave,
|
||||
std::unique_ptr<ToxEncrypt> passKey);
|
||||
static QStringList getFilesByExt(QString extension);
|
||||
QString avatarPath(const ToxPk& owner, bool forceUnencrypted = false);
|
||||
|
|
Loading…
Reference in New Issue
Block a user