Most enums were replaced with constants, according to MISRA

This commit is contained in:
Pavel Kirienko
2014-04-19 15:16:10 +04:00
parent ace2cf9d0e
commit dfe3b4511e
21 changed files with 95 additions and 55 deletions
@@ -17,7 +17,7 @@ void bitarrayCopy(const unsigned char* src_org, int src_offset, int src_len, uns
class UAVCAN_EXPORT BitStream
{
enum { MaxBytesPerRW = 16 };
static const unsigned MaxBytesPerRW = 16;
ITransferBuffer& buf_;
int bit_offset_;
@@ -33,7 +33,7 @@ class UAVCAN_EXPORT BitStream
}
public:
enum { MaxBitsPerRW = MaxBytesPerRW * 8 };
static const unsigned MaxBitsPerRW = MaxBytesPerRW * 8;
enum
{