Make the root symbol more telling in the DB

I spent a few minutes trying to understand why I had a field with an
empty symbol, until I realise that it’s because that was the symbol for
the root element.
Now that shouldn’t happen anymore
This commit is contained in:
regnat 2021-06-03 15:28:04 +02:00
parent 9053ac0693
commit af5c323e93

View File

@ -209,7 +209,7 @@ Cache::Cache(const Hash & useCache,
SymbolTable & symbols)
: db(std::make_shared<AttrDb>(useCache))
, symbols(symbols)
, rootSymbol(symbols.create(""))
, rootSymbol(symbols.create("%root%"))
{
}