Fix some compiler errors...

This commit is contained in:
Pavel Krajcevski 2013-01-28 11:44:14 -05:00
parent 45e926536a
commit deac1e7fad
2 changed files with 2 additions and 2 deletions

View file

@ -61,6 +61,7 @@ class BlockStatManager {
class BlockStatList { class BlockStatList {
public: public:
BlockStatList(); BlockStatList();
BlockStatList(const BlockStatList &other);
~BlockStatList(); ~BlockStatList();
void AddStat(const BlockStat &stat); void AddStat(const BlockStat &stat);
@ -69,7 +70,6 @@ class BlockStatManager {
private: private:
BlockStatList(const BlockStat &stat); BlockStatList(const BlockStat &stat);
BlockStatList(const BlockStatList &other);
BlockStat m_Stat; BlockStat m_Stat;
BlockStatList *m_Tail; BlockStatList *m_Tail;

View file

@ -86,7 +86,7 @@ void BlockStatManager::Copy(const BlockStatManager &other) {
// copying this class and make sure to actually create a new instance. // copying this class and make sure to actually create a new instance.
assert(!"We shouldn't be copying these in this manner!"); assert(!"We shouldn't be copying these in this manner!");
m_BlockStatList = new BlockStatList(other.m_BlockStatList); m_BlockStatList = new BlockStatList(*other.m_BlockStatList);
m_BlockStatListSz = other.m_BlockStatListSz; m_BlockStatListSz = other.m_BlockStatListSz;
m_NextBlock = other.m_NextBlock; m_NextBlock = other.m_NextBlock;