diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-12-14 00:29:00 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-12-14 00:29:00 +0100 |
commit | f18afd3d1e73cc0020bfa1189e0b8fefc0f14e61 (patch) | |
tree | 391235d09867cf718d69a8e8d4beed6cefda5057 /api/logic/minecraft/ComponentList.cpp | |
parent | ef2cbe16e611da68f3cb529f87f4ecb3038af161 (diff) | |
download | MultiMC-f18afd3d1e73cc0020bfa1189e0b8fefc0f14e61.tar MultiMC-f18afd3d1e73cc0020bfa1189e0b8fefc0f14e61.tar.gz MultiMC-f18afd3d1e73cc0020bfa1189e0b8fefc0f14e61.tar.lz MultiMC-f18afd3d1e73cc0020bfa1189e0b8fefc0f14e61.tar.xz MultiMC-f18afd3d1e73cc0020bfa1189e0b8fefc0f14e61.zip |
NOISSUE fix a bunch of warnings thrown by Qt internals
Badly connected signals/slots and similar things.
Diffstat (limited to 'api/logic/minecraft/ComponentList.cpp')
-rw-r--r-- | api/logic/minecraft/ComponentList.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api/logic/minecraft/ComponentList.cpp b/api/logic/minecraft/ComponentList.cpp index 6547a851..dbf6ee08 100644 --- a/api/logic/minecraft/ComponentList.cpp +++ b/api/logic/minecraft/ComponentList.cpp @@ -744,23 +744,23 @@ bool ComponentList::revertToBase(int index) return true; } -ComponentPtr ComponentList::getComponent(const QString &id) +Component * ComponentList::getComponent(const QString &id) { auto iter = d->componentIndex.find(id); if (iter == d->componentIndex.end()) { return nullptr; } - return *iter; + return (*iter).get(); } -ComponentPtr ComponentList::getComponent(int index) +Component * ComponentList::getComponent(int index) { if(index < 0 || index >= d->components.size()) { return nullptr; } - return d->components[index]; + return d->components[index].get(); } bool ComponentList::isVanilla() |