mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Found the source of the growing style file bug (and fixed it)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@645 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -32,6 +32,11 @@ IndexMap<Key,Value>& DelayedIndexMaps<Key,Value>::get(const String& name, const
|
||||
return item->read_data;
|
||||
}
|
||||
|
||||
template <typename Key, typename Value>
|
||||
void DelayedIndexMaps<Key,Value>::clear() {
|
||||
data.clear();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : Reflection
|
||||
|
||||
// custom reflection : it's a template class
|
||||
|
||||
@@ -148,6 +148,8 @@ class DelayedIndexMaps {
|
||||
public:
|
||||
/// Get the data for a specific name. Initialize the map with init_with (if it is not alread initialized)
|
||||
IndexMap<Key,Value>& get(const String& name, const vector<Key>& init_with);
|
||||
/// Clear the delayed index map
|
||||
void clear();
|
||||
private:
|
||||
map<String, intrusive_ptr<DelayedIndexMapsData<Key,Value> > > data;
|
||||
friend class Reader;
|
||||
|
||||
Reference in New Issue
Block a user