summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-09-03 17:57:54 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-09-03 17:58:05 +0200
commit8abf888c7d3f3a277fe04ef97df6185dadd9fa48 (patch)
tree6f66259872aef1e5216e5ca43da2d2b27d83b703 /kexi/kexidb
parent08500cc118c149f1c8364eaf9ab505ace28913fa (diff)
downloadkoffice-8abf888c7d3f3a277fe04ef97df6185dadd9fa48.tar.gz
koffice-8abf888c7d3f3a277fe04ef97df6185dadd9fa48.zip
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 0b9e390c01029f4f1a8c0263e532fc1c3faf2b7d)
Diffstat (limited to 'kexi/kexidb')
-rw-r--r--kexi/kexidb/connection.cpp2
-rw-r--r--kexi/kexidb/parser/parser_p.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/kexi/kexidb/connection.cpp b/kexi/kexidb/connection.cpp
index dd2eb76b..776285e5 100644
--- a/kexi/kexidb/connection.cpp
+++ b/kexi/kexidb/connection.cpp
@@ -2938,7 +2938,7 @@ KexiDB::QuerySchema* Connection::setupQuerySchema( const RowData &data )
bool ok = true;
const int objID = data[0].toInt(&ok);
if (!ok)
- return false;
+ return 0;
TQString sqlText;
if (!loadDataBlock( objID, sqlText, "sql" )) {
setError(ERR_OBJECT_NOT_FOUND,
diff --git a/kexi/kexidb/parser/parser_p.cpp b/kexi/kexidb/parser/parser_p.cpp
index df4f3323..7c223233 100644
--- a/kexi/kexidb/parser/parser_p.cpp
+++ b/kexi/kexidb/parser/parser_p.cpp
@@ -585,7 +585,7 @@ QuerySchema* buildSelectQuery(
if (!options->whereExpr->validate(parseInfo)) {
setError(parseInfo.errMsg, parseInfo.errDescr);
CLEANUP;
- return false;
+ return 0;
}
querySchema->setWhereExpression(options->whereExpr);
}