summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-03-11 19:11:52 +0000
committerFedja Beader <fedja@protonmail.ch>2024-03-11 19:11:52 +0000
commitaf3eb6ba1c1c5a4a26592d53c614013225efd2d6 (patch)
tree72f55ca3f3a1b83492548d15141cc9fb9c339b1d /src
parentdf883d0a3bacc98a20a357a7e3fe23432f1b6eb2 (diff)
downloadmanaverse-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')
-rw-r--r--src/gui/windows/inventorywindow.cpp6
-rw-r--r--src/gui/windows/ministatuswindow.cpp4
-rw-r--r--src/resources/inventory/inventory.cpp4
-rw-r--r--src/resources/inventory/inventory.h4
4 files changed, 9 insertions, 9 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)
{
diff --git a/src/resources/inventory/inventory.cpp b/src/resources/inventory/inventory.cpp
index 31ee16a59..8c00c150d 100644
--- a/src/resources/inventory/inventory.cpp
+++ b/src/resources/inventory/inventory.cpp
@@ -301,12 +301,12 @@ int Inventory::getLastUsedSlot() const
return -1;
}
-void Inventory::addInventoyListener(InventoryListener* const listener)
+void Inventory::addInventoryListener(InventoryListener* const listener)
{
mInventoryListeners.push_back(listener);
}
-void Inventory::removeInventoyListener(InventoryListener* const listener)
+void Inventory::removeInventoryListener(InventoryListener* const listener)
{
mInventoryListeners.remove(listener);
}
diff --git a/src/resources/inventory/inventory.h b/src/resources/inventory/inventory.h
index 653bfa711..2eb487b0d 100644
--- a/src/resources/inventory/inventory.h
+++ b/src/resources/inventory/inventory.h
@@ -169,9 +169,9 @@ class Inventory notfinal
*/
int getLastUsedSlot() const A_WARN_UNUSED;
- void addInventoyListener(InventoryListener *const listener);
+ void addInventoryListener(InventoryListener *const listener);
- void removeInventoyListener(InventoryListener *const listener);
+ void removeInventoryListener(InventoryListener *const listener);
InventoryTypeT getType() const noexcept2 A_WARN_UNUSED
{ return mType; }