Kaydet (Commit) 9ed5028b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Replace deprecated std::bin2nd with lambda in connectivity

(as std::bind2nd is gone by default at least from recent libc++ in C++17 mode)

Change-Id: I344fe128fab0f57a2c5f2dfc8c097e1ab2406508
Reviewed-on: https://gerrit.libreoffice.org/45857Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst e073ec4e
......@@ -1346,7 +1346,7 @@ bool OResultSet::OpenImpl()
}
m_pFileSet->get().erase(std::remove_if(m_pFileSet->get().begin(),m_pFileSet->get().end(),
std::bind2nd(std::equal_to<sal_Int32>(),0))
[](sal_Int32 n) { return n == 0; })
,m_pFileSet->get().end());
}
}
......
......@@ -1190,7 +1190,7 @@ void OResultSet::executeQuery()
}
// Now remove any keys marked with a 0
m_pKeySet->get().erase(std::remove_if(m_pKeySet->get().begin(),m_pKeySet->get().end()
,std::bind2nd(std::equal_to<sal_Int32>(),0))
,[](sal_Int32 n) { return n == 0; })
,m_pKeySet->get().end());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment