forked from qt-creator/qt-creator
Compile the C++ parser library with Sun CC 5.9.
Things you mustn't do: 1) end an enum with a comma 2) #include <cxxxx> and not use std:: 3) use anonymous structures All three things are invalid C++. Anonymous structures inside anonymous unions are allowed by GCC, but that doesn't mean it's valid.
This commit is contained in:
@@ -77,7 +77,7 @@ public:
|
||||
for (int index = 0; index <= _segmentCount; ++index) {
|
||||
delete[] (_segments[index] + (index << SEGMENT_SHIFT));
|
||||
}
|
||||
free(_segments);
|
||||
std::free(_segments);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ public:
|
||||
if (++_count == _allocatedElements) {
|
||||
if (++_segmentCount == _allocatedSegments) {
|
||||
_allocatedSegments += 4;
|
||||
_segments = (_Tp **) realloc(_segments, _allocatedSegments * sizeof(_Tp *));
|
||||
_segments = (_Tp **) std::realloc(_segments, _allocatedSegments * sizeof(_Tp *));
|
||||
}
|
||||
|
||||
_Tp *segment = new _Tp[SEGMENT_SIZE];
|
||||
|
||||
Reference in New Issue
Block a user