OSDN Git Service

[core] :
authorcaprice <caprice@users.sourceforge.jp>
Wed, 26 Jun 2013 16:43:30 +0000 (01:43 +0900)
committercaprice <caprice@users.sourceforge.jp>
Wed, 26 Jun 2013 16:43:30 +0000 (01:43 +0900)
queryの変更に追従
database::do_query()のテンプレート引数が抜けていたので追加

core/src/GikoMona.cpp

index e329baf..58c05b3 100644 (file)
@@ -36,9 +36,9 @@ void done_core() noexcept {
 
 void optimize_database(const boost::filesystem::path& db_path) {
     database db("./history.db");
-    auto q = query<int>().define()
+    auto q = query().define()
         .select("count-of-deleting-values", "file-infomation");
-    if(db.do_query(q) >= 1000) {
+    if(db.do_query<int>(q) >= 1000) {
         db.optimize();
     }
 }