Fix -wreturn-type warnings

This commit is contained in:
2021-10-25 18:13:25 +02:00
parent ed61003636
commit 017932e673
4 changed files with 8 additions and 9 deletions

View File

@@ -22,18 +22,17 @@ SOFTWARE.
bool SqliteDao::execBool(sqlite::database_binder &binder) const
{
bool result;
bool result = false;
try
{
bool result;
binder >> result;
return result;
}
catch(sqlite::sqlite_exception &e)
{
// TODO: well, we may want to check whether rows have found or not and thus log this here
return false;
result = false;
}
return result;
}
int SqliteDao::execInt(sqlite::database_binder &binder) const
@@ -52,4 +51,5 @@ int SqliteDao::execInt(sqlite::database_binder &binder) const
{
throwFrom(e);
}
return 0;
}