summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-09 18:18:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-09 18:34:53 +0200
commit6a029b2c2484e7753f8483ff822efccafe3cf176 (patch)
treed6e9d3aa6aa47f50dbff676d8bc7dbeccf38f5b7
parent078059915bdb39726924ef5bfed159c8dcf2af6c (diff)
migration: prevent string printed with double-quotes in qDebug()
-rw-r--r--migration/20160906_0-mappings.cpp2
-rw-r--r--migration/migration.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/migration/20160906_0-mappings.cpp b/migration/20160906_0-mappings.cpp
index 89c78a9d..060b9967 100644
--- a/migration/20160906_0-mappings.cpp
+++ b/migration/20160906_0-mappings.cpp
@@ -56,7 +56,7 @@ struct mappings_from_2_3_0_rc11 : migration
}
QString unique_date() const override { return "20160909_00"; }
- QString name() const override { return "Migrate mappings to 2.3.0-rc12"; }
+ QString name() const override { return "mappings to 2.3.0-rc12"; }
static Mappings get_new_mappings()
{
diff --git a/migration/migration.cpp b/migration/migration.cpp
index ae0d98b0..a196d762 100644
--- a/migration/migration.cpp
+++ b/migration/migration.cpp
@@ -94,7 +94,10 @@ std::vector<QString> migrator::run()
if (done.size())
{
for (const QString& name : done)
- qDebug() << "--" << name;
+ {
+ const QByteArray data = name.toUtf8();
+ qDebug() << "migrate:" << data.constData();
+ }
}
return done;