Code clean-up

This commit is contained in:
2016-10-13 09:01:23 +02:00
parent f51c4dbbec
commit affe7b06a2
7 changed files with 98 additions and 18 deletions

View File

@@ -231,6 +231,17 @@ namespace ZRCola {
///
inline character_db() : idxChr(data) {}
///
/// Clears the database
///
inline void clear()
{
idxChr .clear();
idxDsc .clear();
idxDscSub.clear();
data .clear();
}
///
/// Search for characters by description in given categories
///
@@ -379,6 +390,16 @@ namespace ZRCola {
/// Constructs the database
///
inline chrcat_db() : idxChrCat(data), idxRnk(data) {}
///
/// Clears the database
///
inline void clear()
{
idxChrCat.clear();
idxRnk .clear();
data .clear();
}
};