Automated style fixes in order to bring the code a little bit closer to compliance with MISRA C++ rules. No changes in logic.

This commit is contained in:
Pavel Kirienko
2014-03-25 03:04:36 +04:00
parent cce657e1fe
commit 0cc627016a
64 changed files with 777 additions and 283 deletions
@@ -39,7 +39,9 @@ class CharArrayFormatter
if (std::is_same<T, char>())
{
if (array_.size() != array_.capacity())
{
array_.push_back(value);
}
}
else if (std::is_signed<T>())
{
@@ -67,7 +69,7 @@ public:
typedef ArrayType_ ArrayType;
CharArrayFormatter(ArrayType& array)
: array_(array)
: array_(array)
{ }
ArrayType& getArray() { return array_; }
@@ -78,7 +80,7 @@ public:
writeValue(text);
}
template<typename T, typename... Args>
template <typename T, typename... Args>
void write(const char* s, T value, Args... args)
{
while (s && *s)
@@ -105,7 +107,7 @@ public:
typedef ArrayType_ ArrayType;
CharArrayFormatter(ArrayType& array)
: array_(array)
: array_(array)
{ }
ArrayType& getArray() { return array_; }