From 6679f5cffa9d35a23b76605ddfbf3257f882b6ee Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 17 Apr 2008 23:34:36 +0000 Subject: [FIX] Frac -> Fraction [FIX] ImageCache and Ini removed [FIX] Fraction/Point widgets moved to pokemodr [FIX] Copy ctors made for pokemod classes [FIX] Ctors in pokemod fixed [FIX] Copyright headers fixed in pokemodr [FIX] PokeModr updated to new API and fixed in some places git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@99 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/CoinList.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'pokemod/CoinList.cpp') diff --git a/pokemod/CoinList.cpp b/pokemod/CoinList.cpp index b6349c50..e0b9f2fb 100644 --- a/pokemod/CoinList.cpp +++ b/pokemod/CoinList.cpp @@ -16,9 +16,7 @@ */ // Qt includes -#include #include -#include // Pokemod includes #include "Pokemod.h" @@ -29,6 +27,12 @@ // Header include #include "CoinList.h" +CoinList::CoinList(const CoinList& coinList) : + Object("CoinList", coinList.pokemod(), coinList.id()) +{ + *this = coinList; +} + CoinList::CoinList(const Pokemod* pokemod, const int id) : Object("CoinList", pokemod, id), m_name(""), @@ -36,13 +40,13 @@ CoinList::CoinList(const Pokemod* pokemod, const int id) : { } -CoinList::CoinList(const Pokemod* pokemod, const CoinList& coinList, const int id) : +CoinList::CoinList(const CoinList& coinList, const Pokemod* pokemod, const int id) : Object("CoinList", pokemod, id) { *this = coinList; } -CoinList::CoinList(const Pokemod* pokemod, const QDomElement& xml, const int id) : +CoinList::CoinList(const QDomElement& xml, const Pokemod* pokemod, const int id) : Object("CoinList", pokemod, id) { load(xml, id); @@ -209,13 +213,13 @@ CoinListObject* CoinList::newObject() CoinListObject* CoinList::newObject(const QDomElement& xml) { - m_objects.append(new CoinListObject(pokemod(), xml, objectId())); + m_objects.append(new CoinListObject(xml, pokemod(), objectId())); return m_objects[objectCount() - 1]; } CoinListObject* CoinList::newObject(const CoinListObject& object) { - m_objects.append(new CoinListObject(pokemod(), object, objectId())); + m_objects.append(new CoinListObject(object, pokemod(), objectId())); return m_objects[objectCount() - 1]; } -- cgit