Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MaximInterface
Diff: WindowManager.cpp
- Revision:
- 7:66c5dedc750b
- Parent:
- 0:33d4e66780c0
- Child:
- 8:a0d75dff3c9b
--- a/WindowManager.cpp Mon Mar 06 18:02:09 2017 -0600
+++ b/WindowManager.cpp Thu Mar 09 11:38:33 2017 -0600
@@ -68,16 +68,16 @@
return m_windowStack.empty() ? Bitmap(m_width, m_height) : m_windowStack.back()->render();
}
-void WindowManager::push(Window * window)
+void WindowManager::push(std::auto_ptr<Window> & window)
{
- if (window != NULL)
+ if (window.get() != NULL)
{
window->setWidth(m_width);
window->setHeight(m_height);
window->setX(0);
window->setY(0);
window->setWindowManager(NULL);
- m_actionQueue.push_back(window);
+ m_actionQueue.push_back(window.release());
}
}