summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-05-08 17:29:01 +0900
committerCaolán McNamara <caolanm@redhat.com>2015-05-08 15:54:12 +0000
commit99e60d8d62b69d8b0b22d54e3f55c5151e7a2c2f (patch)
tree6385680c4ad53010b37982946d19643d7a35ae9a /xmloff
parent12bb6a054d697efddee76269605ed2450a2fae9c (diff)
std::ptr_fun became deprecated since C++11
Change-Id: If93609d032c9864e0251230bf9ed76e6b6741a62 Reviewed-on: https://gerrit.libreoffice.org/15672 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/forms/layerimport.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/xmloff/source/forms/layerimport.cxx b/xmloff/source/forms/layerimport.cxx
index 33459eb45ed1..453c49009842 100644
--- a/xmloff/source/forms/layerimport.cxx
+++ b/xmloff/source/forms/layerimport.cxx
@@ -52,6 +52,7 @@
#include <xmloff/xmlnmspe.hxx>
#include <rtl/strbuf.hxx>
#include <algorithm>
+#include <functional>
namespace xmloff
{
@@ -581,18 +582,15 @@ void OFormLayerXMLImport_Impl::documentDone( )
// process XForms-bindings; call registerXFormsValueBinding for each
std::for_each( m_aXFormsValueBindings.begin(),
m_aXFormsValueBindings.end(),
- bind1st( ptr_fun( bindXFormsValueBinding ),
- rImport.GetModel() ) );
+ std::bind( bindXFormsValueBinding, rImport.GetModel(), std::placeholders::_1 ) );
// same for list bindings
std::for_each( m_aXFormsListBindings.begin(),
m_aXFormsListBindings.end(),
- bind1st( ptr_fun( bindXFormsListBinding ),
- rImport.GetModel() ) );
+ std::bind( bindXFormsListBinding, rImport.GetModel(), std::placeholders::_1 ) );
// same for submissions
std::for_each( m_aXFormsSubmissions.begin(),
m_aXFormsSubmissions.end(),
- bind1st( ptr_fun( bindXFormsSubmission ),
- rImport.GetModel() ) );
+ std::bind( bindXFormsSubmission, rImport.GetModel(), std::placeholders::_1 ) );
}
} // namespace xmloff