X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d0c0756e1097b4874cfe4d13afe6090987702ef..cfad3750c3ecc821ffae8b9b3de852551270846d:/src/common/tbarbase.cpp diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index aac6b6ae94..d50620d33f 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -29,7 +29,7 @@ #include #endif -#if USE_TOOLBAR +#if wxUSE_TOOLBAR #include "wx/tbarbase.h" @@ -195,7 +195,7 @@ void wxToolBarBase::AddSeparator () { wxToolBarTool *tool = new wxToolBarTool; tool->m_toolStyle = wxTOOL_STYLE_SEPARATOR; - m_tools.Append(tool); + m_tools.Append(-1, tool); } void wxToolBarBase::ClearTools(void) @@ -615,7 +615,7 @@ void wxToolBarBase::AdjustScrollbars(void) // Default OnSize resets scrollbars, if any void wxToolBarBase::OnSize(wxSizeEvent& event) { -#if USE_CONSTRAINTS +#if wxUSE_CONSTRAINTS if (GetAutoLayout()) Layout(); #endif