Skip to content

Commit

Permalink
style(core): format code
Browse files Browse the repository at this point in the history
  • Loading branch information
RiscadoA committed Sep 26, 2023
1 parent 74a2480 commit b2d0c35
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
12 changes: 6 additions & 6 deletions core/include/cubos/core/reflection/traits/dictionary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ namespace cubos::core::reflection
Stop mStop;
Key mKey;
Value mValue;
InsertDefault mInsertDefault;
InsertCopy mInsertCopy;
InsertMove mInsertMove;
Erase mErase;
InsertDefault mInsertDefault{nullptr};
InsertCopy mInsertCopy{nullptr};
InsertMove mInsertMove{nullptr};
Erase mErase{nullptr};
};

class DictionaryTrait::Iterator
Expand Down Expand Up @@ -254,7 +254,7 @@ namespace cubos::core::reflection
/// @param trait Dictionary trait.
Iterator(void* inner, void* instance, const DictionaryTrait& trait);

void* mInner;
void* mInner{nullptr};
void* mInstance;
const DictionaryTrait& mTrait;
};
Expand Down Expand Up @@ -300,7 +300,7 @@ namespace cubos::core::reflection
/// @param trait Dictionary trait.
ConstIterator(void* inner, const void* instance, const DictionaryTrait& trait);

void* mInner;
void* mInner{nullptr};
const void* mInstance;
const DictionaryTrait& mTrait;
};
Expand Down
18 changes: 6 additions & 12 deletions core/src/cubos/core/reflection/traits/dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ DictionaryTrait::DictionaryTrait(const Type& keyType, const Type& valueType, Len
, mStop(stop)
, mKey(key)
, mValue(value)
, mInsertDefault(nullptr)
, mInsertCopy(nullptr)
, mInsertMove(nullptr)
, mErase(nullptr)
{
}

Expand Down Expand Up @@ -180,8 +176,7 @@ DictionaryTrait::Iterator::Iterator(void* inner, void* instance, const Dictionar
}

DictionaryTrait::Iterator::Iterator(const Iterator& other)
: mInner(nullptr)
, mInstance(other.mInstance)
: mInstance(other.mInstance)
, mTrait(other.mTrait)
{
if (!other.isNull())
Expand All @@ -190,8 +185,8 @@ DictionaryTrait::Iterator::Iterator(const Iterator& other)
}
}

DictionaryTrait::Iterator::Iterator(Iterator&& other)
noexcept : mInner(other.mInner)
DictionaryTrait::Iterator::Iterator(Iterator&& other) noexcept
: mInner(other.mInner)
, mInstance(other.mInstance)
, mTrait(other.mTrait)
{
Expand Down Expand Up @@ -245,8 +240,7 @@ DictionaryTrait::ConstIterator::ConstIterator(void* inner, const void* instance,
}

DictionaryTrait::ConstIterator::ConstIterator(const ConstIterator& other)
: mInner(nullptr)
, mInstance(other.mInstance)
: mInstance(other.mInstance)
, mTrait(other.mTrait)
{
if (!other.isNull())
Expand All @@ -255,8 +249,8 @@ DictionaryTrait::ConstIterator::ConstIterator(const ConstIterator& other)
}
}

DictionaryTrait::ConstIterator::ConstIterator(ConstIterator&& other)
noexcept : mInner(other.mInner)
DictionaryTrait::ConstIterator::ConstIterator(ConstIterator&& other) noexcept
: mInner(other.mInner)
, mInstance(other.mInstance)
, mTrait(other.mTrait)
{
Expand Down

0 comments on commit b2d0c35

Please sign in to comment.