summaryrefslogtreecommitdiff
path: root/libs/intrusive/example/doc_window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/intrusive/example/doc_window.cpp')
-rw-r--r--libs/intrusive/example/doc_window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/intrusive/example/doc_window.cpp b/libs/intrusive/example/doc_window.cpp
index f471c1e7c6..67ff275e61 100644
--- a/libs/intrusive/example/doc_window.cpp
+++ b/libs/intrusive/example/doc_window.cpp
@@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
//
-// (C) Copyright Ion Gaztanaga 2006-2009
+// (C) Copyright Ion Gaztanaga 2006-2012
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
@@ -27,7 +27,7 @@ class Window : public list_base_hook<>
//Constructor. Includes this window in the list
Window() { all_windows.push_back(*this); }
//Destructor. Removes this node from the list
- virtual ~Window() { all_windows.erase(win_list::s_iterator_to(*this)); }
+ virtual ~Window() { all_windows.erase(win_list::s_iterator_to(*this)); }
//Pure virtual function to be implemented by derived classes
virtual void Paint() = 0;
};
@@ -75,7 +75,7 @@ int main()
MainWindow window;
//Paint all the windows, sub-windows and so on
- paint_all_windows();
+ paint_all_windows();
//All the windows are automatically unregistered in their destructors.
return 0;