From: <gua...@us...> - 2013-12-15 14:51:43
|
Revision: 5594 http://sourceforge.net/p/moneymanagerex/code/5594 Author: guanlisheng Date: 2013-12-15 14:51:41 +0000 (Sun, 15 Dec 2013) Log Message: ----------- fix compile issue Modified Paths: -------------- trunk/src/model/Model.h trunk/src/model/Model_Infotable.h Modified: trunk/src/model/Model.h =================================================================== --- trunk/src/model/Model.h 2013-12-15 14:41:43 UTC (rev 5593) +++ trunk/src/model/Model.h 2013-12-15 14:51:41 UTC (rev 5594) @@ -124,14 +124,6 @@ { return this->remove(id, db_); } -public: - static loop_t to_loop_t() - { - loop_t loop; - for (const auto &r: DB_TABLE::instance().all()) - loop += r.to_row_t(); - return loop; - } }; #endif // Modified: trunk/src/model/Model_Infotable.h =================================================================== --- trunk/src/model/Model_Infotable.h 2013-12-15 14:41:43 UTC (rev 5593) +++ trunk/src/model/Model_Infotable.h 2013-12-15 14:51:41 UTC (rev 5594) @@ -131,6 +131,14 @@ return this->GetIntInfo("DATAVERSION", 0) >= mmex::MIN_DATAVERSION; } +public: + static loop_t to_loop_t() + { + loop_t loop; + for (const auto &r: instance().all()) + loop += r.to_row_t(); + return loop; + } }; #endif // This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |