summaryrefslogtreecommitdiffstats
path: root/pokemodr/models/CoinListObjectModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemodr/models/CoinListObjectModel.cpp')
-rw-r--r--pokemodr/models/CoinListObjectModel.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/pokemodr/models/CoinListObjectModel.cpp b/pokemodr/models/CoinListObjectModel.cpp
index 0176b7e2..ed788cae 100644
--- a/pokemodr/models/CoinListObjectModel.cpp
+++ b/pokemodr/models/CoinListObjectModel.cpp
@@ -15,20 +15,20 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-// Qt includes
-#include <QDomDocument>
-#include <QFile>
-
-// Pokemod includes
-#include <CoinListObject.h>
-#include <Item.h>
-#include <Species.h>
+// Header include
+#include "CoinListObjectModel.h"
// PokeModr includes
-#include "CoinListObjectUI.h"
+#include "../CoinListObjectUI.h"
-// Header include
-#include "CoinListObjectModel.h"
+// Pokemod includes
+#include "../../pokemod/CoinListObject.h"
+#include "../../pokemod/Item.h"
+#include "../../pokemod/Species.h"
+
+// Qt includes
+#include <QDomDocument>
+#include <QFile>
CoinListObjectModel::CoinListObjectModel(BaseModel* parent, Object* object) :
ObjectModel(parent, object)
@@ -45,9 +45,9 @@ QVariant CoinListObjectModel::data(int role) const
{
CoinListObject* object = static_cast<CoinListObject*>(m_object);
if (object->type() == CoinListObject::Item)
- return m_object->pokemod()->item(object->object())->name();
+ return static_cast<const Pokemod*>(m_object->pokemod())->item(object->object())->name();
else if (object->type() == CoinListObject::Species)
- return m_object->pokemod()->species(object->object())->name();
+ return static_cast<const Pokemod*>(m_object->pokemod())->species(object->object())->name();
}
else if (role == BaseModel::XmlRole)
{