fix readability-identifier-length

This commit is contained in:
wmayer
2023-11-14 20:15:02 +01:00
parent 57a333e2b2
commit 9c7d00ffcb
38 changed files with 281 additions and 270 deletions

View File

@@ -52,8 +52,8 @@ public:
: _toHandle(nullptr)
{}
Reference(T* p)
: _toHandle(p)
Reference(T* pointer)
: _toHandle(pointer)
{
if (_toHandle) {
_toHandle->ref();
@@ -61,8 +61,8 @@ public:
}
/** Copy constructor */
Reference(const Reference<T>& p)
: _toHandle(p._toHandle)
Reference(const Reference<T>& ref)
: _toHandle(ref._toHandle)
{
if (_toHandle) {
_toHandle->ref();
@@ -85,16 +85,16 @@ public:
// operator implementation
/** Assign operator from a pointer */
Reference<T>& operator=(T* p)
Reference<T>& operator=(T* pointer)
{
// check if we want to reassign the same object
if (_toHandle == p) {
if (_toHandle == pointer) {
return *this;
}
if (_toHandle) {
_toHandle->unref();
}
_toHandle = p;
_toHandle = pointer;
if (_toHandle) {
_toHandle->ref();
}
@@ -102,16 +102,16 @@ public:
}
/** Assign operator from a handle */
Reference<T>& operator=(const Reference<T>& p)
Reference<T>& operator=(const Reference<T>& ref)
{
// check if we want to reassign the same object
if (_toHandle == p._toHandle) {
if (_toHandle == ref._toHandle) {
return *this;
}
if (_toHandle) {
_toHandle->unref();
}
_toHandle = p._toHandle;
_toHandle = ref._toHandle;
if (_toHandle) {
_toHandle->ref();
}