diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-03-11 19:11:52 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-03-11 19:11:52 +0000 |
commit | af3eb6ba1c1c5a4a26592d53c614013225efd2d6 (patch) | |
tree | 72f55ca3f3a1b83492548d15141cc9fb9c339b1d /src/gui | |
parent | df883d0a3bacc98a20a357a7e3fe23432f1b6eb2 (diff) | |
download | ManaVerse-af3eb6ba1c1c5a4a26592d53c614013225efd2d6.tar.gz ManaVerse-af3eb6ba1c1c5a4a26592d53c614013225efd2d6.tar.bz2 ManaVerse-af3eb6ba1c1c5a4a26592d53c614013225efd2d6.tar.xz ManaVerse-af3eb6ba1c1c5a4a26592d53c614013225efd2d6.zip |
Typofix {add,remove}InventoyListener -> {add,remove}InventoryListener
****
Approved-by: Jesusalva Jesusalva <jesusalva@themanaworld.org>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/inventorywindow.cpp | 6 | ||||
-rw-r--r-- | src/gui/windows/ministatuswindow.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 3253a8e83..41d34df13 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -389,7 +389,7 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) : Layout &layout = getLayout(); layout.setRowHeight(2, LayoutType::SET); - mInventory->addInventoyListener(this); + mInventory->addInventoryListener(this); invInstances.push_back(this); @@ -425,7 +425,7 @@ InventoryWindow::~InventoryWindow() { invInstances.remove(this); if (mInventory != nullptr) - mInventory->removeInventoyListener(this); + mInventory->removeInventoryListener(this); if (!invInstances.empty()) invInstances.front()->updateDropButton(); @@ -1117,7 +1117,7 @@ void InventoryWindow::unsetInventory() { if (mInventory != nullptr) { - mInventory->removeInventoyListener(this); + mInventory->removeInventoryListener(this); if (mItems != nullptr) mItems->unsetInventory(); } diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp index 1621055ab..4c2b2d376 100644 --- a/src/gui/windows/ministatuswindow.cpp +++ b/src/gui/windows/ministatuswindow.cpp @@ -154,7 +154,7 @@ MiniStatusWindow::MiniStatusWindow() : addMouseListener(this); Inventory *const inv = PlayerInfo::getInventory(); if (inv != nullptr) - inv->addInventoyListener(this); + inv->addInventoryListener(this); StatusWindow::updateMoneyBar(mMoneyBar); StatusWindow::updateArrowsBar(mArrowsBar); @@ -169,7 +169,7 @@ MiniStatusWindow::~MiniStatusWindow() Inventory *const inv = PlayerInfo::getInventory(); if (inv != nullptr) - inv->removeInventoyListener(this); + inv->removeInventoryListener(this); FOR_EACH (ProgressBarVectorCIter, it, mBars) { |