summaryrefslogtreecommitdiff
path: root/xmloff/source/xforms
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-04-30 01:57:43 +0900
committerMichael Stahl <mstahl@redhat.com>2015-04-30 11:51:17 +0000
commitc675a2d669c191f3b18ae006c78ef83efba14c30 (patch)
treec8fd1a6efd7d5ba73d97159180a779d73f3f46ff /xmloff/source/xforms
parentca37fcec558414ff44fb61358406ad08fe6ea5bd (diff)
xmloff: simplify code by using std::all_of/std::any_of/std::none_of
Change-Id: I87311d8989c23538983d45ad9b12a64080441d78 Reviewed-on: https://gerrit.libreoffice.org/15569 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'xmloff/source/xforms')
-rw-r--r--xmloff/source/xforms/TokenContext.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmloff/source/xforms/TokenContext.cxx b/xmloff/source/xforms/TokenContext.cxx
index 6d07235290db..981c15e50659 100644
--- a/xmloff/source/xforms/TokenContext.cxx
+++ b/xmloff/source/xforms/TokenContext.cxx
@@ -19,8 +19,6 @@
#include <sal/config.h>
-#include <functional>
-
#include "TokenContext.hxx"
#include <xmloff/xmltkmap.hxx>
#include <xmloff/xmlimp.hxx>
@@ -28,6 +26,7 @@
#include <xmloff/xmlerror.hxx>
#include <tools/debug.hxx>
+#include <algorithm>
using com::sun::star::uno::Reference;
using com::sun::star::xml::sax::XAttributeList;
@@ -134,7 +133,7 @@ void TokenContext::Characters( const OUString& rCharacters )
const sal_Unicode* pEnd = &( pBegin[ rCharacters.getLength() ] );
// raise error if non-whitespace character is found
- if( ::std::find_if( pBegin, pEnd, ::std::not1(::std::ptr_fun(lcl_IsWhiteSpace)) ) != pEnd )
+ if( !::std::all_of( pBegin, pEnd, lcl_IsWhiteSpace ) )
GetImport().SetError( XMLERROR_UNKNOWN_CHARACTERS, rCharacters );
}