Add a simple wxStack<> template class based on wxVector<>.

This is still simpler than std::stack<> which can be used with any container
and not just wxVector<> but better than the WX_DECLARE_STACK() macro which was
all that we had before.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-02-27 12:46:34 +00:00
parent 7067a74dd9
commit b1bf7dc722
4 changed files with 124 additions and 6 deletions

View File

@@ -53,8 +53,6 @@
#include "wx/stack.h"
WX_DECLARE_STACK(GraphicsState, GraphicsStates);
namespace
{
@@ -385,7 +383,7 @@ private:
const wxGraphicsBrush& backgroundBrush);
Graphics* m_context;
GraphicsStates m_stateStack;
wxStack<GraphicsState> m_stateStack;
GraphicsState m_state1;
GraphicsState m_state2;