From ad68fb8bf7778eeae5cc2d2d799877a98845129c Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Tue, 9 Oct 2018 12:01:58 +0200 Subject: [PATCH] code cleanup --- src/core/database.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/core/database.cpp b/src/core/database.cpp index 0a07ddd..123c467 100644 --- a/src/core/database.cpp +++ b/src/core/database.cpp @@ -45,7 +45,8 @@ void Database::newDb() fs::path sourcePath = dbname_; fs::path destPath = sourcePath.parent_path() / sourcePath.stem(); - destPath += std::string("_") += boost::posix_time::to_iso_string(boost::posix_time::second_clock::local_time()) += ".db"; + destPath += std::string("_") += + boost::posix_time::to_iso_string(boost::posix_time::second_clock::local_time()) += ".db"; fs::copy_file(sourcePath, destPath, fs::copy_options::overwrite_existing); @@ -113,9 +114,10 @@ void Database::createNew() ");"}; sqlStrings.push_back(sqlCreateSalesItems); - std::string sqlInitialEntries{"INSERT OR IGNORE INTO sellers (id, seller_no, first_name, last_name, " - "num_offered_articles) VALUES " - "('11111111-1111-1111-1111-111111111111', 0, 'Sonderkonto', 'Sonderkonto', 0)"}; + std::string sqlInitialEntries{ + "INSERT OR IGNORE INTO sellers (id, seller_no, first_name, last_name, " + "num_offered_articles) VALUES " + "('11111111-1111-1111-1111-111111111111', 0, 'Sonderkonto', 'Sonderkonto', 0)"}; sqlStrings.push_back(sqlInitialEntries); beginTransaction();