View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001997 | NoesisGUI | C++ SDK | public | 2021-05-02 15:35 | 2021-05-03 19:18 |
| Reporter | steveh | Assigned To | sfernandez | ||
| Priority | normal | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.0.9 | ||||
| Target Version | 3.0.12 | Fixed in Version | 3.0.12 | ||
| Summary | 0001997: Const safety incorrect for ItemColelction::IndexOf | ||||
| Description | Hi guys, the parameter for ItemCollection::IndexOf are not const: int ItemCollection::IndexOf(BaseComponent* item) const (and likewise BaseCollection::IndexOfComponent etc). This prevents me from doing the following: /static/ void MyCustomComponent::OnPropertyChanged(DependencyObject pObject, const DependencyPropertyChangedEventArgs &rArgs) I can use a const_cast for now, but I don't see any reason why the parameter can't be const as it should only be checking to see if the address of the property is in the collection, it shouldn't need to mutate the object. | ||||
| Platform | Any | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-05-02 15:35 | steveh | New Issue | |
| 2021-05-03 10:22 | sfernandez | Assigned To | => sfernandez |
| 2021-05-03 10:22 | sfernandez | Status | new => assigned |
| 2021-05-03 10:22 | sfernandez | Target Version | => 3.0.12 |
| 2021-05-03 19:18 | sfernandez | Status | assigned => resolved |
| 2021-05-03 19:18 | sfernandez | Resolution | open => fixed |
| 2021-05-03 19:18 | sfernandez | Fixed in Version | => 3.0.12 |