Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F114520
D61.1732558631.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D61.1732558631.diff
View Options
diff --git a/src/client/actions/auth.cpp b/src/client/actions/auth.cpp
--- a/src/client/actions/auth.cpp
+++ b/src/client/actions/auth.cpp
@@ -38,7 +38,8 @@
}
kzo.client.dbg() << "Job success" << std::endl;
- const json &j = r.jsonBody().get();
+ auto jw = r.jsonBody();
+ auto const &j = jw.get();
// TODO: replace this with r.wellKnown()
std::string serverUrl = j.contains("well_known")
? j.at("well_known").at("m.homeserver").at("base_url").get<std::string>()
diff --git a/src/client/room/room-model.cpp b/src/client/room/room-model.cpp
--- a/src/client/room/room-model.cpp
+++ b/src/client/room/room-model.cpp
@@ -165,7 +165,8 @@
// remove all local echoes that are received
for (const auto &e : a.events) {
- const auto &json = e.originalJson().get();
+ auto jw = e.originalJson();
+ const auto &json = jw.get();
if (json.contains("unsigned")
&& json["unsigned"].contains("transaction_id")
&& json["unsigned"]["transaction_id"].is_string()) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 10:17 AM (17 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39866
Default Alt Text
D61.1732558631.diff (1 KB)
Attached To
Mode
D61: Fix possibly dangling reference to a temporary
Attached
Detach File
Event Timeline
Log In to Comment