Fix some gcc warnings.
This commit is contained in:
@@ -58,7 +58,7 @@ TCPlusObject BPoint_Create_3(TPasObject PasObject)
|
||||
|
||||
void BPoint_Free(TCPlusObject Point)
|
||||
{
|
||||
delete Point;
|
||||
delete reinterpret_cast<BPoint*>(Point);
|
||||
}
|
||||
|
||||
void BPoint_ConstrainTo(TCPlusObject Point, BRect rect)
|
||||
|
||||
@@ -67,7 +67,7 @@ TCPlusObject BRect_Create_4(TPasObject PasObject, BPoint leftTop, BPoint rightBo
|
||||
|
||||
void BRect_Free(TCPlusObject rect)
|
||||
{
|
||||
delete rect;
|
||||
delete reinterpret_cast<BRect*>(rect);
|
||||
}
|
||||
|
||||
void BRect_PrintToStream(TCPlusObject rect)
|
||||
@@ -434,4 +434,4 @@ BRect_Contains_1
|
||||
#endif
|
||||
|
||||
|
||||
#endif _RECT_CPP_ /* _RECT_CPP_ */
|
||||
#endif _RECT_CPP_ /* _RECT_CPP_ */
|
||||
|
||||
Reference in New Issue
Block a user