View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012959 | Open CASCADE | OCCT:Foundation Classes | public | 2006-07-12 20:51 | 2014-05-03 06:55 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | trivial | ||
Status | closed | Resolution | fixed | ||
OS | All | ||||
Fixed in Version | 6.5.0 | ||||
Summary | 0012959: Compiler warnings in TColStd_PackedMapOfInteger | ||||
Description | When compiling on Linux, the compiler reports warnings in TColStd_PackedMapOfInteger.cxx, lines 282 and 283 for inappropriate casting of TColStd_intMapNode** to TCollection_MapNode*& in call to method BeginResize() of TCollection_BasicMap. In fact, the problem is in the declaration of the method BeginResize(): it is declared to accept TCollection_MapNode*&, but it should be TCollection_MapNode**&. The same problem applies to method EndResize(). Actually, these methods do just allocation and allocation of the pointers and they do not need them to be of the good type, therefore it would be more natural for them to accept Standard_Address& and thus avoid confusing pointer types. Naturally, other derived classes besides PackedMapOfInteger should also be updated after this change. | ||||
Tags | No tags attached. | ||||
Test case number | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-08-02 11:23 | bugmaster | Category | OCCT:FDC => OCCT:Foundation Classes |
2014-05-03 06:55 |
|
Note Added: 0029174 | |
2014-05-03 06:55 |
|
Status | new => closed |
2014-05-03 06:55 |
|
Resolution | open => fixed |
2014-05-03 06:55 |
|
Fixed in Version | EMPTY => 6.5.0 |
2014-05-03 06:55 |
|
Description Updated |