Base: apply clang format

This commit is contained in:
wmayer
2023-11-10 18:27:44 +01:00
committed by WandererFan
parent bb333d9a74
commit 985def3416
154 changed files with 11874 additions and 9872 deletions

View File

@@ -25,8 +25,8 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <cassert>
# include <iostream>
#include <cassert>
#include <iostream>
#endif
#include <QAtomicInt>
@@ -40,14 +40,14 @@ using namespace Base;
// Construction/Destruction
Handled::Handled()
: _lRefCount(new QAtomicInt(0))
{
}
: _lRefCount(new QAtomicInt(0))
{}
Handled::~Handled()
{
if (static_cast<int>(*_lRefCount) != 0)
if (static_cast<int>(*_lRefCount) != 0) {
std::cerr << "Reference counter of deleted object is not zero!!!!!" << std::endl;
}
delete _lRefCount;
}
@@ -67,7 +67,7 @@ void Handled::unref() const
int Handled::unrefNoDelete() const
{
int res = _lRefCount->deref();
assert(res>=0);
assert(res >= 0);
return res;
}
@@ -76,7 +76,7 @@ int Handled::getRefCount() const
return static_cast<int>(*_lRefCount);
}
Handled& Handled::operator = (const Handled&)
Handled& Handled::operator=(const Handled&)
{
// we must not assign _lRefCount
return *this;