Bug #2042
semantics of rsc::runtime::Properties::set() not conform to documentation
Status: | Resolved | Start date: | 10/07/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | Util | |||
Target version: | Robotics Service Bus - rsb-0.18 |
Description
While the doc says:
Sets a new property in the map. If a property with this name exits, the
new one will not be inserted. The old property has to be removed first.
However, the source code always does:
erase(key)
Please decide on desired semantics and change code or doc correspondingly.
Associated revisions
Fixed confused semantics of Properties::set in src/rsc/runtime/Properties.h
fixes #2042
- src/rsc/runtime/Properties.h (Properties::set): always replace
existing entries; return Properties object
History
#1 Updated by J. Moringen about 6 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset rsc|e9b262e801818e2ba0c2bd86b38477dcd8e99e34.
#2 Updated by J. Moringen about 6 years ago
- Category set to Util
- Assignee set to J. Moringen
- Target version set to rsb-0.18