mirror of https://github.com/zeldaret/botw.git
style: Fix coding guideline violations
This commit is contained in:
parent
c3c42902a7
commit
046ec81bf0
|
|
@ -25,9 +25,9 @@ PlacementMap::PlacementMap() {
|
|||
mCol = 0;
|
||||
mRow = 0;
|
||||
mNumRoutes = 0;
|
||||
mP18 = 0;
|
||||
mMgr = 0;
|
||||
mPa = 0;
|
||||
mP18 = nullptr;
|
||||
mMgr = nullptr;
|
||||
mPa = nullptr;
|
||||
mDynamicGroupIdx = 0xFFFFFFFF;
|
||||
mRes[0].mStatus = HkscRes::Status::_0;
|
||||
mRes[1].mStatus = HkscRes::Status::_0;
|
||||
|
|
|
|||
|
|
@ -5,9 +5,7 @@ namespace ksys::qst {
|
|||
|
||||
CameraTarget::~CameraTarget() = default;
|
||||
|
||||
ActorData::ActorData(sead::Heap* heap) {
|
||||
this->heap = heap;
|
||||
}
|
||||
ActorData::ActorData(sead::Heap* heap) : heap(heap) {}
|
||||
|
||||
ActorData::~ActorData() {
|
||||
for (int i = 0; i < targets.size(); ++i) {
|
||||
|
|
|
|||
|
|
@ -3,10 +3,7 @@
|
|||
|
||||
namespace ksys::qst {
|
||||
|
||||
Indicator::Indicator(Step* step, sead::Heap* heap) {
|
||||
this->heap = heap;
|
||||
this->step = step;
|
||||
}
|
||||
Indicator::Indicator(Step* step, sead::Heap* heap) : heap(heap), step(step) {}
|
||||
|
||||
Indicator::~Indicator() {
|
||||
finalize();
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ bool ByamlIter::getByamlDataByKey(ByamlData* data, const char* key) const {
|
|||
|
||||
auto* header = reinterpret_cast<const al::ByamlHeader*>(mData);
|
||||
const s32 offset = header->getHashKeyTableOffset();
|
||||
if (!offset) {
|
||||
if (offset == 0) {
|
||||
return false;
|
||||
}
|
||||
const ByamlStringTableIter table = ByamlStringTableIter(&mData[offset]);
|
||||
|
|
|
|||
|
|
@ -23,12 +23,12 @@ void Event::initialize(bool manual_reset) {
|
|||
}
|
||||
|
||||
void Event::wait() {
|
||||
if (!mSignalSet || !mManualReset)
|
||||
if (mSignalSet == 0 || !mManualReset)
|
||||
mEvent.wait();
|
||||
}
|
||||
|
||||
bool Event::wait(sead::TickSpan duration) {
|
||||
return (mSignalSet && mManualReset) || mEvent.wait(duration);
|
||||
return (mSignalSet != 0 && mManualReset) || mEvent.wait(duration);
|
||||
}
|
||||
|
||||
void Event::setSignal() {
|
||||
|
|
@ -40,7 +40,7 @@ void Event::setSignal() {
|
|||
}
|
||||
|
||||
void Event::resetSignal() {
|
||||
if (!mSignalSet && mManualReset)
|
||||
if (mSignalSet == 0 && mManualReset)
|
||||
return;
|
||||
|
||||
mEvent.resetSignal();
|
||||
|
|
|
|||
Loading…
Reference in New Issue