Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112512
D61.1732326231.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.1732326231.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
Fri, Nov 22, 5:43 PM (4 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39041
Default Alt Text
D61.1732326231.diff (1 KB)
Attached To
Mode
D61: Fix possibly dangling reference to a temporary
Attached
Detach File
Event Timeline
Log In to Comment