Fix catch by value warning
This commit is contained in:
parent
e0981e17a1
commit
10f09d4f43
@ -172,7 +172,7 @@ UserProfile::fetchDeviceList(const QString &userID)
|
||||
sign_key.second,
|
||||
json(mk.value()),
|
||||
sign.at(sign_key.first)));
|
||||
} catch (std::out_of_range) {
|
||||
} catch (std::out_of_range &) {
|
||||
isUserVerified =
|
||||
isUserVerified || false;
|
||||
}
|
||||
@ -226,7 +226,7 @@ UserProfile::fetchDeviceList(const QString &userID)
|
||||
.cross_verified
|
||||
.push_back(d.first);
|
||||
}
|
||||
} catch (std::out_of_range) {
|
||||
} catch (std::out_of_range &) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -326,4 +326,4 @@ UserProfile::createFlow(bool isVerifyUser)
|
||||
std::cout << "DIDN'T FIND A ENCRYPTED ROOM WITH THIS USER" << std::endl;
|
||||
return (new DeviceVerificationFlow(this, DeviceVerificationFlow::Type::ToDevice));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user