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
@ -106,8 +106,8 @@ public:
|
|||||||
typedef std::map<uint32_t, uint32_t> TypeMapping;
|
typedef std::map<uint32_t, uint32_t> TypeMapping;
|
||||||
typedef std::map<DataType, TypeMapping> Mappings;
|
typedef std::map<DataType, TypeMapping> Mappings;
|
||||||
|
|
||||||
Mappings mappings() { return _mappings; }
|
Mappings mappings() { return _mappings; }
|
||||||
const Mappings mappings() const { return _mappings; }
|
const Mappings& mappings() const { return _mappings; }
|
||||||
|
|
||||||
bool operator==(const ChanMapping& other) const {
|
bool operator==(const ChanMapping& other) const {
|
||||||
return (_mappings == other._mappings);
|
return (_mappings == other._mappings);
|
||||||
|
Loading…
Reference in New Issue
Block a user