mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0024742: Remove rarely used collection classes: Stack
Generic class TCollection_Stack removed (along with TCollection_StackIterator and TCollection_StackNode). Code using TCollection_Stack changed to equivalent use of TCollection_List (replacing Push -> Prepend, Top -> First, Pop -> RemoveFirst).
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#include <OpenGl_Element.hxx>
|
||||
#include <OpenGl_Light.hxx>
|
||||
|
||||
#include <NCollection_Stack.hxx>
|
||||
#include <NCollection_List.hxx>
|
||||
|
||||
//! Defines interface for OpenGL state.
|
||||
class OpenGl_StateInterface
|
||||
@@ -44,7 +44,7 @@ protected:
|
||||
|
||||
Standard_Size myIndex; //!< Current state index
|
||||
Standard_Size myNextIndex; //!< Next state index
|
||||
NCollection_Stack<Standard_Size> myStateStack; //!< Stack of previous states.
|
||||
NCollection_List<Standard_Size> myStateStack; //!< Stack of previous states.
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user