mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -47,7 +47,7 @@ const Handle_NIS_Drawer& NIS_InteractiveObject::SetDrawer
|
||||
const Standard_Boolean setUpdated)
|
||||
{
|
||||
NIS_InteractiveContext * aCtx = theDrawer->GetContext();
|
||||
if (myDrawer.IsNull() == Standard_False)
|
||||
if (myDrawer.IsNull() == Standard_False) {
|
||||
if (aCtx == 0L)
|
||||
{
|
||||
aCtx = myDrawer->GetContext();
|
||||
@@ -59,6 +59,7 @@ const Handle_NIS_Drawer& NIS_InteractiveObject::SetDrawer
|
||||
(myDrawer->GetContext() != 0L && aCtx != myDrawer->GetContext(),
|
||||
"NIS_InteractiveObject::SetDrawer: different drawer context");
|
||||
}
|
||||
}
|
||||
|
||||
Standard_NullValue_Raise_if
|
||||
(aCtx == 0L, "NIS_InteractiveObject::SetDrawer: NULL drawer context");
|
||||
|
Reference in New Issue
Block a user