small cleanup
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
#include "XmlFileUtil.h"
|
#include "XmlFileUtil.h"
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
|
||||||
|
|
||||||
Bookkeeper* BOOKKEEPER = NULL; // global and accessable from anywhere in our program
|
Bookkeeper* BOOKKEEPER = NULL; // global and accessable from anywhere in our program
|
||||||
|
|
||||||
static const RString COINS_DAT = "Save/Coins.xml";
|
static const RString COINS_DAT = "Save/Coins.xml";
|
||||||
@@ -18,7 +17,6 @@ static const RString COINS_DAT = "Save/Coins.xml";
|
|||||||
Bookkeeper::Bookkeeper()
|
Bookkeeper::Bookkeeper()
|
||||||
{
|
{
|
||||||
ClearAll();
|
ClearAll();
|
||||||
|
|
||||||
ReadFromDisk();
|
ReadFromDisk();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,7 +170,6 @@ int Bookkeeper::GetCoinsTotal() const
|
|||||||
return GetNumCoinsInRange( m_mapCoinsForHour.begin(), m_mapCoinsForHour.end() );
|
return GetNumCoinsInRange( m_mapCoinsForHour.begin(), m_mapCoinsForHour.end() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Bookkeeper::GetCoinsLastDays( int coins[NUM_LAST_DAYS] ) const
|
void Bookkeeper::GetCoinsLastDays( int coins[NUM_LAST_DAYS] ) const
|
||||||
{
|
{
|
||||||
time_t lOldTime = time(NULL);
|
time_t lOldTime = time(NULL);
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ private:
|
|||||||
map<Date,int> m_mapCoinsForHour;
|
map<Date,int> m_mapCoinsForHour;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
extern Bookkeeper* BOOKKEEPER; // global and accessable from anywhere in our program
|
extern Bookkeeper* BOOKKEEPER; // global and accessable from anywhere in our program
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user