fix missing namespace

This commit is contained in:
akir 2004-10-21 10:56:05 +00:00
parent 93696499f3
commit 4f1fbbe6e1

View file

@ -38,9 +38,9 @@ void HeadArea::clearStrut(Strut *str) {
if (str == 0) if (str == 0)
return; return;
// find strut and erase it // find strut and erase it
std::list<Strut *>::iterator pos = find(m_strutlist.begin(), std::list<Strut *>::iterator pos = std::find(m_strutlist.begin(),
m_strutlist.end(), m_strutlist.end(),
str); str);
if (pos == m_strutlist.end()) { if (pos == m_strutlist.end()) {
std::cerr << "clearStrut() failed because the strut was not found" << std::endl; std::cerr << "clearStrut() failed because the strut was not found" << std::endl;
return; return;
@ -77,7 +77,7 @@ bool HeadArea::updateAvailableWorkspaceArea() {
m_available_workspace_area.reset(new Strut(0, 0, 0, 0, 0)); m_available_workspace_area.reset(new Strut(0, 0, 0, 0, 0));
// calculate max area // calculate max area
for_each(m_strutlist.begin(), std::for_each(m_strutlist.begin(),
m_strutlist.end(), m_strutlist.end(),
MaxArea(*m_available_workspace_area.get())); MaxArea(*m_available_workspace_area.get()));