diff options
author | louiz’ <louiz@louiz.org> | 2017-03-29 23:32:43 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-03-29 23:32:43 +0200 |
commit | 1a09c965eb3723cdaab9ea556f30ffbc7f09a6dd (patch) | |
tree | 8da20afbb4520f71bbdd9ed6fc2ff301bb7be992 /src/database | |
parent | 52b795d11976802cfec12d886fca508047ffed89 (diff) | |
download | biboumi-1a09c965eb3723cdaab9ea556f30ffbc7f09a6dd.tar.gz biboumi-1a09c965eb3723cdaab9ea556f30ffbc7f09a6dd.tar.bz2 biboumi-1a09c965eb3723cdaab9ea556f30ffbc7f09a6dd.tar.xz biboumi-1a09c965eb3723cdaab9ea556f30ffbc7f09a6dd.zip |
Remove two sneaky log_debug
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/database.cpp | 2 | ||||
-rw-r--r-- | src/database/database.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp index cb0c78f..71b0c37 100644 --- a/src/database/database.cpp +++ b/src/database/database.cpp @@ -20,7 +20,7 @@ void Database::open(const std::string& filename, const std::string& db_type) "database="s + filename); if (new_db->needsUpgrade()) new_db->upgrade(); - Database::db.reset(new_db.release()); + Database::db = std::move(new_db); } catch (const litesql::DatabaseError& e) { log_error("Failed to open database ", filename, ". ", e.what()); throw; diff --git a/src/database/database.hpp b/src/database/database.hpp index 6823574..1665a9a 100644 --- a/src/database/database.hpp +++ b/src/database/database.hpp @@ -49,7 +49,7 @@ public: const std::string& server, const std::string& channel); static std::vector<db::MucLogLine> get_muc_logs(const std::string& owner, const std::string& chan_name, const std::string& server, - int limit=-1, const std::string& before="", const std::string& after=""); + int limit=-1, const std::string& start="", const std::string& end=""); static void store_muc_message(const std::string& owner, const Iid& iid, time_point date, const std::string& body, const std::string& nick); |