logic: add name delimiter to NameHierarchy

* NameHierarchy now looks like this: <delimiter>\tm<all the rest>
* made new baseclasses for SettingsMigration and SettingsMigrator
* Use the migration system for SqliteBookmarkStorage as well
This commit is contained in:
malte_langkabel
2017-05-16 13:08:12 +02:00
parent 6d0f633d24
commit c551c9a1dd
71 changed files with 692 additions and 523 deletions
@@ -10,6 +10,10 @@ class MessageActivateNodes
public:
struct ActiveNode
{
ActiveNode()
: nodeId(0)
, nameHierarchy(NAME_DELIMITER_UNKNOWN)
{ }
Id nodeId;
NameHierarchy nameHierarchy;
};
@@ -36,7 +36,7 @@ public:
{
if (!m_matches[i].subtext.empty())
{
ss << m_matches[i].subtext << NameHierarchy::getDelimiter();
ss << m_matches[i].subtext << m_matches[i].delimiter;
}
ss << m_matches[i].name;
}