Fix rt-safety (const reference, not const copy)
PluginInsert (and a few other places) iterate over channel mappings using a const iterator. However mappings() allocated memory since it was copied
This commit is contained in:
parent
016970df25
commit
01a75c04b1
@ -107,7 +107,7 @@ public:
|
||||
typedef std::map<DataType, TypeMapping> Mappings;
|
||||
|
||||
Mappings mappings() { return _mappings; }
|
||||
const Mappings mappings() const { return _mappings; }
|
||||
const Mappings& mappings() const { return _mappings; }
|
||||
|
||||
bool operator==(const ChanMapping& other) const {
|
||||
return (_mappings == other._mappings);
|
||||
|
Loading…
Reference in New Issue
Block a user