summaryrefslogtreecommitdiffstats
path: root/src/lib/netlist/plib/ptimed_queue.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-09-25 21:44:39 +0200
committer couriersud <couriersud@gmx.org>2020-09-25 21:44:54 +0200
commit15ea16e1497bcd28168f5c8ba2e53d3a8da8350c (patch)
treece7cc28d5d0a6034e60292691c5f97276e11a353 /src/lib/netlist/plib/ptimed_queue.h
parentdcc2781365cc194fbbd0383269bc1399f48de18a (diff)
netlist: minor code cleanup.
* a number of minor fixes leading to an increase of 570% to 588% on pongf. * admittedly micro optimization. * Includes some comments why certain decisions have been taken.
Diffstat (limited to 'src/lib/netlist/plib/ptimed_queue.h')
-rw-r--r--src/lib/netlist/plib/ptimed_queue.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/netlist/plib/ptimed_queue.h b/src/lib/netlist/plib/ptimed_queue.h
index 13631dfe20a..9df8a8fcd83 100644
--- a/src/lib/netlist/plib/ptimed_queue.h
+++ b/src/lib/netlist/plib/ptimed_queue.h
@@ -36,7 +36,7 @@ namespace plib {
struct pqentry_t final
{
constexpr pqentry_t() noexcept : m_exec_time(), m_object(nullptr) { }
- constexpr pqentry_t(Time t, Element o) noexcept : m_exec_time(t), m_object(o) { }
+ constexpr pqentry_t(const Time &t, const Element &o) noexcept : m_exec_time(t), m_object(o) { }
PCOPYASSIGNMOVE(pqentry_t, default)
@@ -64,8 +64,8 @@ namespace plib {
static constexpr pqentry_t never() noexcept { return pqentry_t(Time::never(), nullptr); }
- constexpr Time exec_time() const noexcept { return m_exec_time; }
- constexpr Element object() const noexcept { return m_object; }
+ constexpr const Time &exec_time() const noexcept { return m_exec_time; }
+ constexpr const Element &object() const noexcept { return m_object; }
private:
Time m_exec_time;
Element m_object;