2929#include " cmsDummyActiveObject.hpp"
3030#include " cmsVectorBackedQEQueue.hpp"
3131#include " qevtUniquePtr.hpp"
32- #include < vector>
3332
3433namespace cms {
3534namespace test {
@@ -60,7 +59,7 @@ class PublishedEventRecorder final : public DefaultDummyActiveObject {
6059
6160 // / Upon construction and init/start, this active object will
6261 // / subscribe and record all events in the signal range:
63- // / [startingValue .. endValue)
62+ // / [startingValue ... endValue)
6463 // / \param startingValue - starting sig value the recorder will record
6564 // / \param endValue - final value in sig range to record. This value is
6665 // / NOT recorded, rather "endValue - 1" is recorded.
@@ -102,11 +101,11 @@ class PublishedEventRecorder final : public DefaultDummyActiveObject {
102101 }
103102 }
104103
105- bool isEmpty () { return m_recordedEvents.isEmpty (); }
104+ bool isEmpty () const { return m_recordedEvents.isEmpty (); }
106105
107- bool isAnyEventRecorded () { return !m_recordedEvents.isEmpty (); }
106+ bool isAnyEventRecorded () const { return !m_recordedEvents.isEmpty (); }
108107
109- bool isSignalRecorded (enum_t sig)
108+ bool isSignalRecorded (const enum_t sig)
110109 {
111110 if (!isAnyEventRecorded ()) {
112111 return false ;
@@ -117,10 +116,10 @@ class PublishedEventRecorder final : public DefaultDummyActiveObject {
117116 return recordedSig == sig;
118117 }
119118
120- cms:: QEvtUniquePtr getRecordedEvent ()
119+ QEvtUniquePtr getRecordedEvent ()
121120 {
122121 if (!isAnyEventRecorded ()) {
123- return cms::QEvtUniquePtr () ;
122+ return {} ;
124123 }
125124
126125 return cms::QEvtUniquePtr (m_recordedEvents.get ());
0 commit comments