summary refs log tree commit diff
path: root/src/ui/UserProfile.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-08-30 19:33:10 +0200
committerCH Chethan Reddy <40890937+Chethan2k1@users.noreply.github.com>2020-09-03 09:37:16 +0530
commit10f09d4f432d8f582972a22ebb2d1436d1335eb9 (patch)
treeacf49bb89d79d94cf95f62e8140da45657a082d8 /src/ui/UserProfile.cpp
parentFix reactions (diff)
downloadnheko-10f09d4f432d8f582972a22ebb2d1436d1335eb9.tar.xz
Fix catch by value warning
Diffstat (limited to 'src/ui/UserProfile.cpp')
-rw-r--r--src/ui/UserProfile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/UserProfile.cpp b/src/ui/UserProfile.cpp

index 59be3464..08c30097 100644 --- a/src/ui/UserProfile.cpp +++ b/src/ui/UserProfile.cpp
@@ -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)); } -} \ No newline at end of file +}