mirror of
https://github.com/leozide/leocad
synced 2025-02-05 08:45:55 +01:00
Removed LC_POINTER_TO_INT
This commit is contained in:
parent
636e013455
commit
d6ba0262af
2 changed files with 2 additions and 4 deletions
|
@ -21,8 +21,6 @@
|
|||
// Old defines and declarations.
|
||||
#define LC_MAXPATH 1024
|
||||
|
||||
#define LC_POINTER_TO_INT(p) ((qint32) (quintptr) (p))
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
char* strcasestr(const char *s, const char *find);
|
||||
#else
|
||||
|
|
|
@ -824,7 +824,7 @@ bool lcModel::LoadBinary(lcFile* file)
|
|||
{
|
||||
lcGroup* Group = mGroups[GroupIdx];
|
||||
|
||||
i = LC_POINTER_TO_INT(Group->mGroup);
|
||||
i = (qint32)(quintptr)(Group->mGroup);
|
||||
Group->mGroup = nullptr;
|
||||
|
||||
if (i > 0xFFFF || i == -1)
|
||||
|
@ -837,7 +837,7 @@ bool lcModel::LoadBinary(lcFile* file)
|
|||
{
|
||||
lcPiece* Piece = mPieces[PieceIdx];
|
||||
|
||||
i = LC_POINTER_TO_INT(Piece->GetGroup());
|
||||
i = (qint32)(quintptr)(Piece->GetGroup());
|
||||
Piece->SetGroup(nullptr);
|
||||
|
||||
if (i > 0xFFFF || i == -1)
|
||||
|
|
Loading…
Add table
Reference in a new issue