Commit 5ec32e7d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use const'ref

parent 0b8dcfc2
...@@ -617,7 +617,7 @@ bool ComposerViewBase::addKeysToContext(const QString &gnupgHome, ...@@ -617,7 +617,7 @@ bool ComposerViewBase::addKeysToContext(const QString &gnupgHome,
bool needSpecialContext = false; bool needSpecialContext = false;
for (const auto &p : data) { for (const auto &p : data) {
for (const auto k : p.second) { for (const auto &k : p.second) {
const auto it = autocryptMap.find(k.primaryFingerprint()); const auto it = autocryptMap.find(k.primaryFingerprint());
if (it != autocryptMap.end()) { if (it != autocryptMap.end()) {
needSpecialContext = true; needSpecialContext = true;
...@@ -640,7 +640,7 @@ bool ComposerViewBase::addKeysToContext(const QString &gnupgHome, ...@@ -640,7 +640,7 @@ bool ComposerViewBase::addKeysToContext(const QString &gnupgHome,
QEventLoop loop; QEventLoop loop;
int runningJobs = 0; int runningJobs = 0;
for (const auto &p : data) { for (const auto &p : data) {
for (const auto k : p.second) { for (const auto &k : p.second) {
const auto it = autocryptMap.find(k.primaryFingerprint()); const auto it = autocryptMap.find(k.primaryFingerprint());
if (it == autocryptMap.end()) { if (it == autocryptMap.end()) {
qDebug() << "Adding " << k.primaryFingerprint() << "via Export/Import"; qDebug() << "Adding " << k.primaryFingerprint() << "via Export/Import";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment