2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Return not_null<History*> in App::history().

This commit is contained in:
John Preston
2017-08-31 20:53:03 +03:00
parent 5a20014b1a
commit 48e2a5472e
13 changed files with 44 additions and 22 deletions

View File

@@ -1858,7 +1858,7 @@ namespace {
return ::histories;
}
History *history(const PeerId &peer) {
not_null<History*> history(const PeerId &peer) {
return ::histories.findOrInsert(peer);
}