cleanup unnecessary struct keywords...

0.6.3
Finbar Crago 7 years ago
parent 2722ca50fb
commit 596be205c1

@ -33,7 +33,7 @@ namespace MWGui
QuickKeysMenu::QuickKeysMenu() QuickKeysMenu::QuickKeysMenu()
: WindowBase("openmw_quickkeys_menu.layout") : WindowBase("openmw_quickkeys_menu.layout")
, mKey(std::vector<struct keyData>(10)) , mKey(std::vector<keyData>(10))
, mSelected(nullptr) , mSelected(nullptr)
, mActivated(nullptr) , mActivated(nullptr)
, mAssignDialog(0) , mAssignDialog(0)
@ -116,7 +116,7 @@ namespace MWGui
} }
} }
void QuickKeysMenu::unassign(struct keyData* key) void QuickKeysMenu::unassign(keyData* key)
{ {
key->button->clearUserStrings(); key->button->clearUserStrings();
key->button->setItem(MWWorld::Ptr()); key->button->setItem(MWWorld::Ptr());
@ -306,7 +306,7 @@ namespace MWGui
{ {
assert(index >= 1 && index <= 9); assert(index >= 1 && index <= 9);
struct keyData *key = &mKey[index-1]; keyData *key = &mKey[index-1];
MWWorld::Ptr player = MWMechanics::getPlayer(); MWWorld::Ptr player = MWMechanics::getPlayer();
MWWorld::InventoryStore& store = player.getClass().getInventoryStore(player); MWWorld::InventoryStore& store = player.getClass().getInventoryStore(player);

@ -65,7 +65,7 @@ namespace MWGui
keyData(): index(-1), button(nullptr), type(Type_Unassigned), id(""), name("") {} keyData(): index(-1), button(nullptr), type(Type_Unassigned), id(""), name("") {}
}; };
std::vector<struct keyData> mKey; std::vector<keyData> mKey;
struct keyData* mSelected; struct keyData* mSelected;
struct keyData* mActivated; struct keyData* mActivated;

Loading…
Cancel
Save