Performed project-wide code formatting

* Updated format CMake command to properly
ignore new directories and files
* Added output when command is run
* Resolves #2623
This commit is contained in:
Jonathan White 2019-01-20 09:50:20 -05:00
parent c74664097b
commit 7e1b16250c
68 changed files with 591 additions and 542 deletions

View file

@ -208,7 +208,8 @@ namespace Tools
return regex;
}
QString uuidToHex(const QUuid& uuid) {
QString uuidToHex(const QUuid& uuid)
{
return QString::fromLatin1(uuid.toRfc4122().toHex());
}
@ -216,7 +217,6 @@ namespace Tools
: raw(nullptr)
, size(0)
{
}
Buffer::~Buffer()
@ -226,15 +226,16 @@ namespace Tools
void Buffer::clear()
{
if(size > 0){
if (size > 0) {
free(raw);
}
raw = nullptr; size = 0;
raw = nullptr;
size = 0;
}
QByteArray Buffer::content() const
{
return QByteArray(reinterpret_cast<char*>(raw), size );
return QByteArray(reinterpret_cast<char*>(raw), size);
}
} // namespace Tools