mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 13:25:45 +02:00
context: remove unnecessary copies
These were added while debugging a crash that was fixed years ago. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
77ef6a0638
commit
cf4b5417c9
@ -1125,8 +1125,7 @@ BeesContext::fd_cache()
|
|||||||
if (!m_fd_cache) {
|
if (!m_fd_cache) {
|
||||||
m_fd_cache = make_shared<BeesFdCache>(shared_from_this());
|
m_fd_cache = make_shared<BeesFdCache>(shared_from_this());
|
||||||
}
|
}
|
||||||
auto rv = m_fd_cache;
|
return m_fd_cache;
|
||||||
return rv;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shared_ptr<BeesRoots>
|
shared_ptr<BeesRoots>
|
||||||
@ -1139,8 +1138,7 @@ BeesContext::roots()
|
|||||||
if (!m_roots) {
|
if (!m_roots) {
|
||||||
m_roots = make_shared<BeesRoots>(shared_from_this());
|
m_roots = make_shared<BeesRoots>(shared_from_this());
|
||||||
}
|
}
|
||||||
auto rv = m_roots;
|
return m_roots;
|
||||||
return rv;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
shared_ptr<BeesHashTable>
|
shared_ptr<BeesHashTable>
|
||||||
@ -1153,8 +1151,7 @@ BeesContext::hash_table()
|
|||||||
if (!m_hash_table) {
|
if (!m_hash_table) {
|
||||||
m_hash_table = make_shared<BeesHashTable>(shared_from_this(), "beeshash.dat");
|
m_hash_table = make_shared<BeesHashTable>(shared_from_this(), "beeshash.dat");
|
||||||
}
|
}
|
||||||
auto rv = m_hash_table;
|
return m_hash_table;
|
||||||
return rv;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user