File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ template <class T>
3737class TBitField {
3838public:
3939 // / @brief The default class constructor.
40- TBitField ();
40+ TBitField () = default ;
4141
4242 // / @brief The class constructor with the initial value.
4343 // / @param[in] init The init value.
@@ -48,7 +48,7 @@ class TBitField {
4848
4949 // / @brief Returns the current bit-mask.
5050 // / @return The bitmask.
51- T GetMask () const ;
51+ T getMask () const ;
5252
5353 // / @brief Will return the bit at the given position.
5454 // / @param[in] pos The bit position for readout.
@@ -76,23 +76,17 @@ class TBitField {
7676 size_t maxBits () const ;
7777
7878private:
79- T mBitMask ;
79+ T mBitMask = 0 ;
8080};
8181
82- template <class T >
83- inline TBitField<T>::TBitField() :
84- mBitMask (0 ) {
85- // empty
86- }
87-
8882template <class T >
8983inline TBitField<T>::TBitField(T init) :
9084 mBitMask (init) {
9185 // empty
9286}
9387
9488template <class T >
95- inline T TBitField<T>::GetMask () const {
89+ inline T TBitField<T>::getMask () const {
9690 return mBitMask ;
9791}
9892
You can’t perform that action at this time.
0 commit comments