4
4
// / @cond
5
5
// /***************************************************************************
6
6
// / Last updated for version 6.8.1
7
- // / Last updated on 2020-04-02
7
+ // / Last updated on 2020-04-05
8
8
// /
9
9
// / Q u a n t u m L e a P s
10
10
// / ------------------------
@@ -155,18 +155,18 @@ namespace QP {
155
155
// ************************************************************************
156
156
class QEvt {
157
157
public:
158
- // ! public constructor (dynamic event )
158
+ // ! public constructor (overload for dynamic events )
159
159
QEvt (QSignal const s) noexcept
160
160
: sig(s)
161
161
// poolId_/refCtr_ intentionally uninitialized
162
162
{}
163
- enum StaticEvt : std::uint8_t { STATIC_EVT };
164
163
165
- // ! public constructor (static event)
166
- QEvt (QSignal const s, StaticEvt /* dummy*/ ) noexcept
164
+ // ! public constructor (overload for static events)
165
+ enum StaticEvt : std::uint8_t { STATIC_EVT };
166
+ constexpr QEvt (QSignal const s, StaticEvt /* dummy*/ ) noexcept
167
167
: sig(s),
168
168
poolId_(0U ),
169
- refCtr_(0U ))
169
+ refCtr_(0U )
170
170
{}
171
171
172
172
#ifdef Q_EVT_VIRTUAL
@@ -188,10 +188,10 @@ namespace QP {
188
188
friend class QEQueue ;
189
189
friend class QTicker ;
190
190
friend class QXThread ;
191
- friend std::uint8_t QF_EVT_POOL_ID_ (QEvt const * const e);
192
- friend std::uint8_t QF_EVT_REF_CTR_ (QEvt const * const e);
193
- friend void QF_EVT_REF_CTR_INC_ (QEvt const * const e);
194
- friend void QF_EVT_REF_CTR_DEC_ (QEvt const * const e);
191
+ friend std::uint8_t QF_EVT_POOL_ID_ (QEvt const * const e) noexcept ;
192
+ friend std::uint8_t QF_EVT_REF_CTR_ (QEvt const * const e) noexcept ;
193
+ friend void QF_EVT_REF_CTR_INC_ (QEvt const * const e) noexcept ;
194
+ friend void QF_EVT_REF_CTR_DEC_ (QEvt const * const e) noexcept ;
195
195
};
196
196
197
197
#else // QEvt is a POD (Plain Old Datatype)
@@ -302,7 +302,7 @@ class QHsm {
302
302
303
303
protected:
304
304
// ! Protected constructor of QHsm.
305
- QHsm (QStateHandler const initial) noexcept ;
305
+ explicit QHsm (QStateHandler const initial) noexcept ;
306
306
307
307
public:
308
308
// facilities for the QHsm implementation strategy...
@@ -513,7 +513,7 @@ class QMsm : public QHsm {
513
513
514
514
protected:
515
515
// ! Protected constructor
516
- QMsm (QStateHandler const initial) noexcept ;
516
+ explicit QMsm (QStateHandler const initial) noexcept ;
517
517
518
518
private:
519
519
// ! disallow the inhertited isIn() function in QP::QMsm and subclasses
0 commit comments