summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-03 12:33:23 -0500
committerSlávek Banko <slavek.banko@axis.cz>2012-07-30 01:02:58 +0200
commitda7ec372e676c978d43999b6f071a8ec46e8ab7b (patch)
tree2b98be9f691283769c653888410d639ac38d9595
parent78523dba12d40184fa40dd4dab17a1d53c8b331e (diff)
downloadkbarcode-da7ec372e676c978d43999b6f071a8ec46e8ab7b.tar.gz
kbarcode-da7ec372e676c978d43999b6f071a8ec46e8ab7b.zip
Fix 'format not a string literal' error
(cherry picked from commit 14ba7d8af6ef7248dcd3eb85ae977950d1758600)
-rw-r--r--kbarcode/csvimportdlg.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/kbarcode/csvimportdlg.cpp b/kbarcode/csvimportdlg.cpp
index 7b42227..117ac24 100644
--- a/kbarcode/csvimportdlg.cpp
+++ b/kbarcode/csvimportdlg.cpp
@@ -334,7 +334,6 @@ void CSVImportDlg::accept()
TQValueList<int> headers;
TQStringList list;
TQString name = getDatabaseName();
- int i = 0;
TQString q = "INSERT INTO " + name + " (";
for( int c = 0; c < table->horizontalHeader()->count(); c++ ) {
@@ -375,7 +374,7 @@ void CSVImportDlg::accept()
TQSqlQuery query;
if( !query.exec( line ) )
- qDebug( i18n("Could not import the following line:") + line );
+ qDebug( "%s", i18n("Could not import the following line:") + line );
//KMessageBox::error( this, i18n("Could not import the following line:") + line );
}