[PATCH 02/13] Remove useless variable.
Vincent Ordy
vincent at ordy.net
Thu Jun 17 18:17:35 CEST 2010
---
kmymoney/dialogs/kgeneratesqldlg.cpp | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/kmymoney/dialogs/kgeneratesqldlg.cpp b/kmymoney/dialogs/kgeneratesqldlg.cpp
index 7f5c7e8..d9c9df7 100644
--- a/kmymoney/dialogs/kgeneratesqldlg.cpp
+++ b/kmymoney/dialogs/kgeneratesqldlg.cpp
@@ -144,7 +144,6 @@ void KGenerateSqlDlg::slotcreateTables()
return;
}
QSqlQuery q(dbase);
- bool created = true;
QString message(i18n("Tables successfully created"));
QStringList commands = m_widget->textSQL->toPlainText().split('\n');
QStringList::ConstIterator cit;
@@ -153,7 +152,6 @@ void KGenerateSqlDlg::slotcreateTables()
//qDebug() << "exec" << *cit;
q.prepare(*cit);
if (!q.exec()) {
- created = false;
QSqlError e = q.lastError();
message = i18n("Creation failed executing statement");
message += QString("\nExecuted: %1").arg(q.executedQuery());
--
1.7.1
--------------060703030708080806090607
Content-Type: text/x-diff;
name="0003-Remove-useless-variable-2.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0003-Remove-useless-variable-2.patch"
More information about the KMyMoney-devel
mailing list