summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/HeadArea.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HeadArea.cc b/src/HeadArea.cc
index 67f08ff..ee2a1d4 100644
--- a/src/HeadArea.cc
+++ b/src/HeadArea.cc
@@ -38,9 +38,9 @@ void HeadArea::clearStrut(Strut *str) {
38 if (str == 0) 38 if (str == 0)
39 return; 39 return;
40 // find strut and erase it 40 // find strut and erase it
41 std::list<Strut *>::iterator pos = find(m_strutlist.begin(), 41 std::list<Strut *>::iterator pos = std::find(m_strutlist.begin(),
42 m_strutlist.end(), 42 m_strutlist.end(),
43 str); 43 str);
44 if (pos == m_strutlist.end()) { 44 if (pos == m_strutlist.end()) {
45 std::cerr << "clearStrut() failed because the strut was not found" << std::endl; 45 std::cerr << "clearStrut() failed because the strut was not found" << std::endl;
46 return; 46 return;
@@ -77,7 +77,7 @@ bool HeadArea::updateAvailableWorkspaceArea() {
77 m_available_workspace_area.reset(new Strut(0, 0, 0, 0, 0)); 77 m_available_workspace_area.reset(new Strut(0, 0, 0, 0, 0));
78 78
79 // calculate max area 79 // calculate max area
80 for_each(m_strutlist.begin(), 80 std::for_each(m_strutlist.begin(),
81 m_strutlist.end(), 81 m_strutlist.end(),
82 MaxArea(*m_available_workspace_area.get())); 82 MaxArea(*m_available_workspace_area.get()));
83 83