summary refs log tree commit diff
path: root/src/timeline/EventStore.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-05-30 01:09:16 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-05-30 01:09:16 +0200
commit567078d39f3c85f260efd68aeb5c99f8e4ffe348 (patch)
tree759ac4f2ec0f7c47cebb0cf3e013d377a936fabe /src/timeline/EventStore.h
parentOptimize completion model by only splitting on normal spaces (diff)
downloadnheko-567078d39f3c85f260efd68aeb5c99f8e4ffe348.tar.xz
Try to get rid of an allocation
Diffstat (limited to 'src/timeline/EventStore.h')
-rw-r--r--src/timeline/EventStore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/EventStore.h b/src/timeline/EventStore.h
index c7a7588b..d9bb86cb 100644
--- a/src/timeline/EventStore.h
+++ b/src/timeline/EventStore.h
@@ -70,7 +70,7 @@ public:
 
         // optionally returns the event or nullptr and fetches it, after which it emits a
         // relatedFetched event
-        mtx::events::collections::TimelineEvents *get(std::string_view id,
+        mtx::events::collections::TimelineEvents *get(std::string id,
                                                       std::string_view related_to,
                                                       bool decrypt       = true,
                                                       bool resolve_edits = true);