style fixes

This commit is contained in:
Guenter Obiltschnig
2016-09-01 11:51:16 +02:00
parent 3feaaa6987
commit fd9ca0a9b6
2 changed files with 8 additions and 10 deletions

View File

@@ -66,6 +66,7 @@ Utility::Utility()
initializeDefaultTypes();
}
void Utility::initializeDefaultTypes()
{
if (_types.empty())
@@ -167,12 +168,10 @@ MetaColumn::ColumnDataType Utility::getColumnType(sqlite3_stmt* pStmt, std::size
sqliteType = sqliteType.substr(0, sqliteType.find_first_of(" ("));
TypeMap::const_iterator it = _types.find(Poco::trimInPlace(sqliteType));
if (_types.end() == it) {
if (_types.end() == it)
return MetaColumn::FDT_BLOB;
}
else {
else
return it->second;
}
}