wait_tree: Eliminate variable shadowing
This commit is contained in:
parent
95bcf6ac38
commit
742f021fdf
|
@ -113,9 +113,9 @@ QString WaitTreeText::GetText() const {
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
WaitTreeMutexInfo::WaitTreeMutexInfo(VAddr mutex_address, const Kernel::KHandleTable& handle_table,
|
WaitTreeMutexInfo::WaitTreeMutexInfo(VAddr mutex_address_, const Kernel::KHandleTable& handle_table,
|
||||||
Core::System& system_)
|
Core::System& system_)
|
||||||
: mutex_address(mutex_address), system{system_} {
|
: mutex_address{mutex_address_}, system{system_} {
|
||||||
mutex_value = system.Memory().Read32(mutex_address);
|
mutex_value = system.Memory().Read32(mutex_address);
|
||||||
owner_handle = static_cast<Kernel::Handle>(mutex_value & Kernel::Svc::HandleWaitMask);
|
owner_handle = static_cast<Kernel::Handle>(mutex_value & Kernel::Svc::HandleWaitMask);
|
||||||
owner = handle_table.GetObject<Kernel::KThread>(owner_handle).GetPointerUnsafe();
|
owner = handle_table.GetObject<Kernel::KThread>(owner_handle).GetPointerUnsafe();
|
||||||
|
@ -140,8 +140,8 @@ std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeMutexInfo::GetChildren() cons
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
WaitTreeCallstack::WaitTreeCallstack(const Kernel::KThread& thread, Core::System& system_)
|
WaitTreeCallstack::WaitTreeCallstack(const Kernel::KThread& thread_, Core::System& system_)
|
||||||
: thread(thread), system{system_} {}
|
: thread{thread_}, system{system_} {}
|
||||||
WaitTreeCallstack::~WaitTreeCallstack() = default;
|
WaitTreeCallstack::~WaitTreeCallstack() = default;
|
||||||
|
|
||||||
QString WaitTreeCallstack::GetText() const {
|
QString WaitTreeCallstack::GetText() const {
|
||||||
|
@ -171,8 +171,8 @@ std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeCallstack::GetChildren() cons
|
||||||
}
|
}
|
||||||
|
|
||||||
WaitTreeSynchronizationObject::WaitTreeSynchronizationObject(
|
WaitTreeSynchronizationObject::WaitTreeSynchronizationObject(
|
||||||
const Kernel::KSynchronizationObject& o, Core::System& system_)
|
const Kernel::KSynchronizationObject& object_, Core::System& system_)
|
||||||
: object(o), system{system_} {}
|
: object{object_}, system{system_} {}
|
||||||
WaitTreeSynchronizationObject::~WaitTreeSynchronizationObject() = default;
|
WaitTreeSynchronizationObject::~WaitTreeSynchronizationObject() = default;
|
||||||
|
|
||||||
WaitTreeExpandableItem::WaitTreeExpandableItem() = default;
|
WaitTreeExpandableItem::WaitTreeExpandableItem() = default;
|
||||||
|
@ -380,8 +380,8 @@ std::vector<std::unique_ptr<WaitTreeItem>> WaitTreeThread::GetChildren() const {
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
WaitTreeEvent::WaitTreeEvent(const Kernel::KReadableEvent& object, Core::System& system_)
|
WaitTreeEvent::WaitTreeEvent(const Kernel::KReadableEvent& object_, Core::System& system_)
|
||||||
: WaitTreeSynchronizationObject(object, system_) {}
|
: WaitTreeSynchronizationObject(object_, system_) {}
|
||||||
WaitTreeEvent::~WaitTreeEvent() = default;
|
WaitTreeEvent::~WaitTreeEvent() = default;
|
||||||
|
|
||||||
WaitTreeThreadList::WaitTreeThreadList(std::vector<Kernel::KThread*>&& list, Core::System& system_)
|
WaitTreeThreadList::WaitTreeThreadList(std::vector<Kernel::KThread*>&& list, Core::System& system_)
|
||||||
|
|
|
@ -78,7 +78,7 @@ public:
|
||||||
class WaitTreeMutexInfo : public WaitTreeExpandableItem {
|
class WaitTreeMutexInfo : public WaitTreeExpandableItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit WaitTreeMutexInfo(VAddr mutex_address, const Kernel::KHandleTable& handle_table,
|
explicit WaitTreeMutexInfo(VAddr mutex_address_, const Kernel::KHandleTable& handle_table,
|
||||||
Core::System& system_);
|
Core::System& system_);
|
||||||
~WaitTreeMutexInfo() override;
|
~WaitTreeMutexInfo() override;
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ private:
|
||||||
class WaitTreeCallstack : public WaitTreeExpandableItem {
|
class WaitTreeCallstack : public WaitTreeExpandableItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit WaitTreeCallstack(const Kernel::KThread& thread, Core::System& system_);
|
explicit WaitTreeCallstack(const Kernel::KThread& thread_, Core::System& system_);
|
||||||
~WaitTreeCallstack() override;
|
~WaitTreeCallstack() override;
|
||||||
|
|
||||||
QString GetText() const override;
|
QString GetText() const override;
|
||||||
|
@ -112,7 +112,7 @@ private:
|
||||||
class WaitTreeSynchronizationObject : public WaitTreeExpandableItem {
|
class WaitTreeSynchronizationObject : public WaitTreeExpandableItem {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit WaitTreeSynchronizationObject(const Kernel::KSynchronizationObject& object,
|
explicit WaitTreeSynchronizationObject(const Kernel::KSynchronizationObject& object_,
|
||||||
Core::System& system_);
|
Core::System& system_);
|
||||||
~WaitTreeSynchronizationObject() override;
|
~WaitTreeSynchronizationObject() override;
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ private:
|
||||||
class WaitTreeEvent : public WaitTreeSynchronizationObject {
|
class WaitTreeEvent : public WaitTreeSynchronizationObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit WaitTreeEvent(const Kernel::KReadableEvent& object, Core::System& system_);
|
explicit WaitTreeEvent(const Kernel::KReadableEvent& object_, Core::System& system_);
|
||||||
~WaitTreeEvent() override;
|
~WaitTreeEvent() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in New Issue