summaryrefslogtreecommitdiff
path: root/xmloff/source/text
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text')
-rw-r--r--xmloff/source/text/txtparae.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 5be4ccc21698..46a19e8a700f 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -108,6 +108,7 @@
#include <list>
#include <unordered_map>
#include <vector>
+#include <algorithm>
using namespace ::std;
using namespace ::com::sun::star;
@@ -665,7 +666,7 @@ void XMLTextParagraphExport::Add( sal_uInt16 nFamily,
break;
}
- if( find_if( xPropStates.begin(), xPropStates.end(), lcl_validPropState ) != xPropStates.end() )
+ if( std::any_of( xPropStates.begin(), xPropStates.end(), lcl_validPropState ) )
{
GetAutoStylePool().Add( nFamily, sParent, xPropStates );
if( !sCondParent.isEmpty() && sParent != sCondParent )
@@ -709,7 +710,7 @@ OUString XMLTextParagraphExport::Find(
++ppAddStates;
}
}
- if( find_if( xPropStates.begin(), xPropStates.end(), lcl_validPropState ) != xPropStates.end() )
+ if( std::any_of( xPropStates.begin(), xPropStates.end(), lcl_validPropState ) )
sName = GetAutoStylePool().Find( nFamily, sName, xPropStates );
return sName;