mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024171: Eliminate CLang compiler warning -Wreorder
Got rid of -Wreorder warning (wrong fields' initialization order); some warnings -Wdangling-else are also fixed
This commit is contained in:
@@ -209,7 +209,7 @@ void NCollection_BaseSequence::PInsertAfter (const Standard_Integer theIndex,
|
||||
{
|
||||
if (theIndex < 0 || theIndex > mySize)
|
||||
Standard_OutOfRange::Raise();
|
||||
if (Other.mySize != 0)
|
||||
if (Other.mySize != 0) {
|
||||
if (theIndex == 0)
|
||||
PPrepend (Other);
|
||||
else {
|
||||
@@ -226,6 +226,7 @@ void NCollection_BaseSequence::PInsertAfter (const Standard_Integer theIndex,
|
||||
myCurrentIndex += Other.mySize;
|
||||
Other.Nullify();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user