From c4ddf6cd6d97e7ce7c2e63e4d393bbeffcb34e4d Mon Sep 17 00:00:00 2001
From: Jochen Nitschke
Date: Wed, 28 Jun 2017 21:48:22 +0200
Subject: C++11 remove std::unary_function bases from functors
std::unary_function is deprecated since C++11 and removed in C++17
90% done with regexp magic.
removed obsolete includes.
The std::unary_function base class was used in 3 places:
* chart2/source/tools/DataSeriesHelper.cxx: lcl_MatchesRole
is used in a std::not1 function helper who uses the members
return_type and argument_type.
- replace deprecated std::not1 with a lambda
* chart2/source/tools/ModifyListenerHelper.cxx:
lcl_weakReferenceToSame used the argument_type member in the
operator() parameter.
- inline the parameter type.
* xmloff/source/chart/SchXMLExport.cxx: lcl_SequenceToMapElement
used result_type and argument_type in operator().
- inline the types
Also fix compile error with gcc about finding std::for_each.
Change-Id: I073673beb01410c3108e7d0346d9e7d6b9ad2e2f
Reviewed-on: https://gerrit.libreoffice.org/39358
Reviewed-by: Stephan Bergmann
Tested-by: Stephan Bergmann
---
.../source/controller/dialogs/DataBrowserModel.cxx | 6 ++---
chart2/source/controller/dialogs/DialogModel.cxx | 3 +--
chart2/source/controller/main/ObjectHierarchy.cxx | 2 +-
chart2/source/inc/CloneHelper.hxx | 3 +--
chart2/source/inc/CommonFunctors.hxx | 11 ++++----
chart2/source/inc/EventListenerHelper.hxx | 5 ++--
chart2/source/inc/ModifyListenerHelper.hxx | 9 +++----
.../source/model/main/ChartModel_Persistence.cxx | 3 +--
chart2/source/model/template/DataInterpreter.cxx | 2 +-
chart2/source/tools/DataSeriesHelper.cxx | 7 ++---
chart2/source/tools/ImplOPropertySet.cxx | 10 +++----
chart2/source/tools/InternalDataProvider.cxx | 12 ++++-----
chart2/source/tools/ModifyListenerHelper.cxx | 10 +++----
chart2/source/tools/PropertyHelper.cxx | 7 +++--
chart2/source/tools/XMLRangeHelper.cxx | 5 ++--
comphelper/source/misc/asyncnotification.cxx | 3 +--
comphelper/source/misc/namedvaluecollection.cxx | 5 ++--
comphelper/source/property/opropertybag.cxx | 4 +--
comphelper/source/property/opropertybag.hxx | 2 +-
.../source/property/propertycontainerhelper.cxx | 2 +-
connectivity/source/cpool/ZConnectionPool.cxx | 5 ++--
connectivity/source/manager/mdrivermanager.cxx | 8 +++---
connectivity/source/sdbcx/VDescriptor.cxx | 5 ++--
cppu/source/uno/lbenv.cxx | 3 +--
cppu/source/uno/lbmap.cxx | 2 +-
.../source/core/dataaccess/databasedocument.cxx | 2 +-
dbaccess/source/core/dataaccess/datasource.cxx | 4 +--
dbaccess/source/core/inc/composertools.hxx | 4 +--
dbaccess/source/core/misc/DatabaseDataProvider.cxx | 4 +--
dbaccess/source/ui/app/subcomponentmanager.cxx | 5 ++--
dbaccess/source/ui/browser/genericcontroller.cxx | 2 +-
dbaccess/source/ui/browser/sbagrid.cxx | 2 +-
dbaccess/source/ui/browser/unodatbr.cxx | 2 +-
dbaccess/source/ui/control/tabletree.cxx | 2 +-
dbaccess/source/ui/inc/TableCopyHelper.hxx | 5 ++--
dbaccess/source/ui/inc/WCopyTable.hxx | 3 +--
.../ui/querydesign/TableFieldDescription.cxx | 4 +--
.../deployment/registry/package/dp_package.cxx | 2 +-
.../source/accessibility/AccessibleParaManager.cxx | 6 ++---
editeng/source/editeng/editdoc.cxx | 12 ++++-----
editeng/source/editeng/editobj.cxx | 6 ++---
editeng/source/editeng/editundo.cxx | 2 +-
.../source/bibliography/formcontrolcontainer.cxx | 3 +--
extensions/source/propctrlr/cellbindinghelper.cxx | 3 +--
extensions/source/propctrlr/composeduiupdate.cxx | 10 +++----
extensions/source/propctrlr/eformshelper.cxx | 3 +--
extensions/source/propctrlr/formbrowsertools.hxx | 4 +--
extensions/source/propctrlr/propertycomposer.cxx | 3 +--
filter/source/config/cache/typedetection.cxx | 2 +-
forms/source/component/ListBox.cxx | 8 +++---
forms/source/component/propertybaghelper.cxx | 6 ++---
forms/source/misc/InterfaceContainer.cxx | 2 +-
fpicker/source/aqua/FilterHelper.mm | 3 +--
fpicker/source/office/OfficeFilePicker.cxx | 3 +--
framework/source/uielement/statusbarmanager.cxx | 5 ++--
include/comphelper/make_shared_from_uno.hxx | 3 +--
include/connectivity/FValue.hxx | 8 +++---
include/editeng/AccessibleParaManager.hxx | 5 ++--
include/osl/diagnose.hxx | 3 +--
include/svl/urlfilter.hxx | 3 +--
oox/source/export/chartexport.cxx | 2 +-
reportdesign/source/ui/report/ViewsWindow.cxx | 2 +-
sal/qa/osl/process/osl_process.cxx | 2 +-
sc/inc/dptabres.hxx | 2 +-
sc/inc/typedstrdata.hxx | 2 +-
sc/qa/unit/subsequent_filters-test.cxx | 2 +-
sc/source/core/data/column.cxx | 4 +--
sc/source/core/data/column2.cxx | 4 +--
sc/source/core/data/column3.cxx | 2 +-
sc/source/core/data/documen7.cxx | 2 +-
sc/source/core/data/document.cxx | 4 +--
sc/source/core/data/document10.cxx | 2 +-
sc/source/core/data/dpcache.cxx | 12 ++++-----
sc/source/core/data/dpdimsave.cxx | 2 +-
sc/source/core/data/dpgroup.cxx | 2 +-
sc/source/core/data/dpobject.cxx | 21 +++++++--------
sc/source/core/data/dpsave.cxx | 2 +-
sc/source/core/data/dptabsrc.cxx | 2 +-
sc/source/core/data/table1.cxx | 2 +-
sc/source/core/data/table3.cxx | 10 +++----
sc/source/core/tool/chartlis.cxx | 5 ++--
sc/source/core/tool/compiler.cxx | 2 +-
sc/source/core/tool/dbdata.cxx | 19 +++++++------
sc/source/core/tool/grouparealistener.cxx | 2 +-
sc/source/core/tool/interpr4.cxx | 3 +--
sc/source/core/tool/interpr5.cxx | 2 +-
sc/source/core/tool/queryparam.cxx | 4 +--
sc/source/core/tool/rangelst.cxx | 12 ++++-----
sc/source/core/tool/rangenam.cxx | 3 +--
sc/source/core/tool/scmatrix.cxx | 31 +++++++++++-----------
sc/source/core/tool/userlist.cxx | 2 +-
sc/source/filter/excel/xestring.cxx | 2 +-
sc/source/filter/orcus/interface.cxx | 2 +-
sc/source/filter/orcus/xmlcontext.cxx | 4 +--
sc/source/filter/xml/XMLExportDatabaseRanges.cxx | 4 +--
sc/source/filter/xml/pivotsource.cxx | 8 +++---
sc/source/filter/xml/xmlimprt.cxx | 2 +-
.../ui/Accessibility/AccessibleFilterMenu.cxx | 2 +-
sc/source/ui/dbgui/dbnamdlg.cxx | 2 +-
sc/source/ui/docshell/autostyl.cxx | 6 ++---
sc/source/ui/docshell/externalrefmgr.cxx | 16 +++++------
sc/source/ui/undo/undoblk.cxx | 2 +-
sc/source/ui/unoobj/chart2uno.cxx | 15 +++++------
sc/source/ui/view/drawvie4.cxx | 4 +--
sc/source/ui/view/gridwin.cxx | 4 +--
sc/source/ui/xmlsource/xmlsourcedlg.cxx | 2 +-
sc/workben/dpcache/perf-test.cpp | 4 +--
sd/source/core/CustomAnimationEffect.cxx | 2 +-
sd/source/ui/animations/CustomAnimationList.cxx | 2 +-
sd/source/ui/animations/SlideTransitionPane.cxx | 4 +--
sd/source/ui/view/ViewShellManager.cxx | 4 +--
sfx2/source/dialog/filtergrouping.cxx | 24 ++++++++---------
sfx2/source/doc/sfxmodelfactory.cxx | 3 +--
shell/source/win32/zipfile/zipfile.cxx | 3 +--
slideshow/source/engine/animationfactory.cxx | 4 +--
slideshow/source/inc/eventqueue.hxx | 3 +--
slideshow/source/inc/tools.hxx | 3 +--
svl/source/undo/undo.cxx | 2 +-
svtools/source/brwbox/brwimpl.hxx | 3 +--
svtools/source/contnr/treelist.cxx | 2 +-
svtools/source/contnr/treelistentry.cxx | 4 +--
svtools/source/control/ctrlbox.cxx | 2 +-
svtools/source/misc/dialogcontrolling.cxx | 3 +--
svtools/source/misc/templatefoldercache.cxx | 14 +++-------
svx/source/accessibility/AccessibleTextHelper.cxx | 11 ++++----
svx/source/form/formcontroller.cxx | 6 ++---
svx/source/form/formcontrolling.cxx | 9 +++----
sw/source/core/unocore/XMLRangeHelper.cxx | 5 ++--
sw/source/filter/ww8/writerhelper.cxx | 5 ++--
sw/source/filter/ww8/writerwordglue.cxx | 2 --
sw/source/filter/ww8/ww8par3.cxx | 3 +--
sw/source/filter/ww8/ww8scan.cxx | 4 +--
sw/source/uibase/docvw/PostItMgr.cxx | 2 +-
.../source/controls/controlmodelcontainerbase.cxx | 9 +++----
toolkit/source/controls/geometrycontrolmodel.cxx | 4 +--
toolkit/source/controls/unocontrols.cxx | 5 ++--
ucb/source/ucp/ext/ucpext_content.cxx | 2 +-
unotools/source/config/configvaluecontainer.cxx | 2 +-
unoxml/source/rdf/librdf_repository.cxx | 3 +--
vcl/source/app/IconThemeInfo.cxx | 3 +--
vcl/source/app/IconThemeScanner.cxx | 3 +--
vcl/source/app/IconThemeSelector.cxx | 3 +--
vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 2 +-
vcl/unx/gtk3/gtk3gtkinst.cxx | 2 +-
xmloff/source/chart/SchXMLExport.cxx | 12 ++++-----
xmloff/source/chart/SchXMLImport.cxx | 2 +-
xmloff/source/chart/SchXMLPlotAreaContext.cxx | 2 +-
xmloff/source/chart/SchXMLTableContext.cxx | 2 +-
xmloff/source/forms/elementimport.cxx | 5 ++--
xmloff/source/forms/formcellbinding.cxx | 3 +--
xmloff/source/forms/property_meta_data.cxx | 2 +-
xmloff/source/text/txtparae.cxx | 1 -
152 files changed, 322 insertions(+), 399 deletions(-)
diff --git a/chart2/source/controller/dialogs/DataBrowserModel.cxx b/chart2/source/controller/dialogs/DataBrowserModel.cxx
index f1d4c9dccf2d..9dc2478f76f9 100644
--- a/chart2/source/controller/dialogs/DataBrowserModel.cxx
+++ b/chart2/source/controller/dialogs/DataBrowserModel.cxx
@@ -171,7 +171,7 @@ sal_Int32 lcl_getValuesRepresentationIndex(
return nResult;
}
-struct lcl_RepresentationsOfLSeqMatch : public std::unary_function< Reference< chart2::data::XLabeledDataSequence >, bool >
+struct lcl_RepresentationsOfLSeqMatch
{
explicit lcl_RepresentationsOfLSeqMatch( const Reference< chart2::data::XLabeledDataSequence > & xLSeq ) :
m_aValuesRep( xLSeq.is() ?
@@ -189,7 +189,7 @@ private:
OUString m_aValuesRep;
};
-struct lcl_RolesOfLSeqMatch : public std::unary_function< Reference< chart2::data::XLabeledDataSequence >, bool >
+struct lcl_RolesOfLSeqMatch
{
explicit lcl_RolesOfLSeqMatch( const Reference< chart2::data::XLabeledDataSequence > & xLSeq ) :
m_aRole(DataSeriesHelper::getRole(xLSeq)) {}
@@ -262,7 +262,7 @@ DataBrowserModel::~DataBrowserModel()
namespace
{
-struct lcl_DataSeriesOfHeaderMatches : public std::unary_function< ::chart::DataBrowserModel::tDataHeader, bool >
+struct lcl_DataSeriesOfHeaderMatches
{
explicit lcl_DataSeriesOfHeaderMatches(
const Reference< chart2::XDataSeries > & xSeriesToCompareWith ) :
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx
index 8bfc3113ecc8..438fab7d7e61 100644
--- a/chart2/source/controller/dialogs/DialogModel.cxx
+++ b/chart2/source/controller/dialogs/DialogModel.cxx
@@ -59,8 +59,7 @@ namespace
{
const OUString lcl_aLabelRole( "label" );
-struct lcl_ChartTypeToSeriesCnt : std::unary_function<
- Reference< XChartType >, Reference< XDataSeriesContainer > >
+struct lcl_ChartTypeToSeriesCnt
{
Reference< XDataSeriesContainer > operator() (
const Reference< XChartType > & xChartType )
diff --git a/chart2/source/controller/main/ObjectHierarchy.cxx b/chart2/source/controller/main/ObjectHierarchy.cxx
index 7889d679b107..ba54572d5c33 100644
--- a/chart2/source/controller/main/ObjectHierarchy.cxx
+++ b/chart2/source/controller/main/ObjectHierarchy.cxx
@@ -54,7 +54,7 @@ using ::com::sun::star::uno::Sequence;
namespace
{
-struct lcl_ObjectToOID : public std::unary_function< Reference< uno::XInterface >, ::chart::ObjectIdentifier >
+struct lcl_ObjectToOID
{
explicit lcl_ObjectToOID( const Reference< chart2::XChartDocument > & xChartDoc ) :
m_xModel( xChartDoc, uno::UNO_QUERY )
diff --git a/chart2/source/inc/CloneHelper.hxx b/chart2/source/inc/CloneHelper.hxx
index ee625666ab9d..ae739bbc6ab6 100644
--- a/chart2/source/inc/CloneHelper.hxx
+++ b/chart2/source/inc/CloneHelper.hxx
@@ -22,7 +22,6 @@
#include
#include
*/
template< typename T >
- struct makeAny : public std::unary_function< T, css::uno::Any >
+ struct makeAny
{
css::uno::Any operator() ( const T & aVal )
{
@@ -51,7 +50,7 @@ template< typename T >
In case no number can be generated from the Any, NaN (see
rtl::math::SetNAN()) is returned.
*/
-struct OOO_DLLPUBLIC_CHARTTOOLS AnyToDouble : public std::unary_function< css::uno::Any, double >
+struct OOO_DLLPUBLIC_CHARTTOOLS AnyToDouble
{
double operator() ( const css::uno::Any & rAny )
{
@@ -65,7 +64,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS AnyToDouble : public std::unary_function< css::u
/** unary function to convert css::uno::Any into an
OUString.
*/
-struct OOO_DLLPUBLIC_CHARTTOOLS AnyToString : public std::unary_function< css::uno::Any, OUString >
+struct OOO_DLLPUBLIC_CHARTTOOLS AnyToString
{
OUString operator() ( const css::uno::Any & rAny )
{
@@ -94,7 +93,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS AnyToString : public std::unary_function< css::u
For conversion rtl::math::StringToDouble is used.
*/
-struct OOO_DLLPUBLIC_CHARTTOOLS OUStringToDouble : public std::unary_function< OUString, double >
+struct OOO_DLLPUBLIC_CHARTTOOLS OUStringToDouble
{
double operator() ( const OUString & rStr )
{
@@ -112,7 +111,7 @@ struct OOO_DLLPUBLIC_CHARTTOOLS OUStringToDouble : public std::unary_function< O
For conversion rtl::math::DoubleToOUString is used.
*/
-struct OOO_DLLPUBLIC_CHARTTOOLS DoubleToOUString : public std::unary_function< double, OUString >
+struct OOO_DLLPUBLIC_CHARTTOOLS DoubleToOUString
{
OUString operator() ( double fNumber )
{
diff --git a/chart2/source/inc/EventListenerHelper.hxx b/chart2/source/inc/EventListenerHelper.hxx
index 7e951a3df3ab..8b9c1ec6c47f 100644
--- a/chart2/source/inc/EventListenerHelper.hxx
+++ b/chart2/source/inc/EventListenerHelper.hxx
@@ -24,7 +24,6 @@
#include
#include
-#include
#include
namespace chart
@@ -36,7 +35,7 @@ namespace impl
{
template< class InterfaceRef >
-struct addListenerFunctor : public std::unary_function< InterfaceRef, void >
+struct addListenerFunctor
{
explicit addListenerFunctor( const css::uno::Reference< css::lang::XEventListener > & xListener ) :
m_xListener( xListener )
@@ -54,7 +53,7 @@ private:
};
template< class InterfaceRef >
-struct removeListenerFunctor : public std::unary_function< InterfaceRef, void >
+struct removeListenerFunctor
{
explicit removeListenerFunctor( const css::uno::Reference< css::lang::XEventListener > & xListener ) :
m_xListener( xListener )
diff --git a/chart2/source/inc/ModifyListenerHelper.hxx b/chart2/source/inc/ModifyListenerHelper.hxx
index 4fe9e178ff9e..48f2e0b149b0 100644
--- a/chart2/source/inc/ModifyListenerHelper.hxx
+++ b/chart2/source/inc/ModifyListenerHelper.hxx
@@ -32,7 +32,6 @@
#include
#include
-#include
#include
namespace chart
@@ -103,7 +102,7 @@ namespace impl
{
template< class InterfaceRef >
-struct addListenerFunctor : public std::unary_function< InterfaceRef, void >
+struct addListenerFunctor
{
explicit addListenerFunctor( const css::uno::Reference< css::util::XModifyListener > & xListener ) :
m_xListener( xListener )
@@ -121,7 +120,7 @@ private:
};
template< class InterfaceRef >
-struct removeListenerFunctor : public std::unary_function< InterfaceRef, void >
+struct removeListenerFunctor
{
explicit removeListenerFunctor( const css::uno::Reference< css::util::XModifyListener > & xListener ) :
m_xListener( xListener )
@@ -139,7 +138,7 @@ private:
};
template< class Pair >
-struct addListenerToMappedElementFunctor : public std::unary_function< Pair, void >
+struct addListenerToMappedElementFunctor
{
explicit addListenerToMappedElementFunctor( const css::uno::Reference< css::util::XModifyListener > & xListener ) :
m_xListener( xListener )
@@ -157,7 +156,7 @@ private:
};
template< class Pair >
-struct removeListenerFromMappedElementFunctor : public std::unary_function< Pair, void >
+struct removeListenerFromMappedElementFunctor
{
explicit removeListenerFromMappedElementFunctor( const css::uno::Reference< css::util::XModifyListener > & xListener ) :
m_xListener( xListener )
diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx
index 834e05c9861c..77aba167c4c6 100644
--- a/chart2/source/model/main/ChartModel_Persistence.cxx
+++ b/chart2/source/model/main/ChartModel_Persistence.cxx
@@ -59,7 +59,6 @@
#include
#include
-#include
using namespace ::com::sun::star;
@@ -69,7 +68,7 @@ using ::osl::MutexGuard;
namespace
{
-struct lcl_PropNameEquals : public std::unary_function< beans::PropertyValue, bool >
+struct lcl_PropNameEquals
{
explicit lcl_PropNameEquals( const OUString & rStrToCompareWith ) :
m_aStr( rStrToCompareWith )
diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx
index 57f03562e85d..0ca15b013069 100644
--- a/chart2/source/model/template/DataInterpreter.cxx
+++ b/chart2/source/model/template/DataInterpreter.cxx
@@ -212,7 +212,7 @@ sal_Bool SAL_CALL DataInterpreter::isDataCompatible(
namespace
{
-struct lcl_LabeledSequenceEquals : public std::unary_function< Reference< data::XLabeledDataSequence >, bool >
+struct lcl_LabeledSequenceEquals
{
explicit lcl_LabeledSequenceEquals( const Reference< data::XLabeledDataSequence > & xLSeqToCmp ) :
m_bHasLabels ( false ),
diff --git a/chart2/source/tools/DataSeriesHelper.cxx b/chart2/source/tools/DataSeriesHelper.cxx
index 849612de0e54..a8a84deb5a67 100644
--- a/chart2/source/tools/DataSeriesHelper.cxx
+++ b/chart2/source/tools/DataSeriesHelper.cxx
@@ -39,7 +39,6 @@
#include
#include
-#include
#include
#include
#include
@@ -54,7 +53,7 @@ using ::com::sun::star::uno::Sequence;
namespace
{
-class lcl_MatchesRole : public std::unary_function< Reference< chart2::data::XLabeledDataSequence >, bool >
+class lcl_MatchesRole
{
public:
explicit lcl_MatchesRole( const OUString & aRole, bool bMatchPrefix ) :
@@ -233,7 +232,9 @@ std::vector< Reference< chart2::data::XLabeledDataSequence > >
std::vector< Reference< chart2::data::XLabeledDataSequence > > aResultVec;
std::remove_copy_if( aDataSequences.getConstArray(), aDataSequences.getConstArray() + aDataSequences.getLength(),
std::back_inserter( aResultVec ),
- std::not1( lcl_MatchesRole( aRole, bMatchPrefix )));
+ [&aRole, bMatchPrefix](const Reference< chart2::data::XLabeledDataSequence > & xSeq)
+ {return !(lcl_MatchesRole(aRole, bMatchPrefix).operator()(xSeq));});
+ //TODO replace lambda with std::not_fn(lcl_MatchesRole(aRole, bMatchPrefix) in C++17
return aResultVec;
}
diff --git a/chart2/source/tools/ImplOPropertySet.cxx b/chart2/source/tools/ImplOPropertySet.cxx
index bfe6fdb296a0..8dee149c3f21 100644
--- a/chart2/source/tools/ImplOPropertySet.cxx
+++ b/chart2/source/tools/ImplOPropertySet.cxx
@@ -22,7 +22,6 @@
#include
#include
-#include
#include
using namespace ::com::sun::star;
@@ -34,8 +33,7 @@ using ::com::sun::star::uno::Any;
namespace
{
-struct lcl_getPropertyStateByHandle :
- public std::unary_function< sal_Int32, beans::PropertyState >
+struct lcl_getPropertyStateByHandle
{
explicit lcl_getPropertyStateByHandle(
const ::property::impl::ImplOPropertySet::tPropertyMap & rMap )
@@ -54,8 +52,7 @@ private:
};
template< typename K, typename V >
-struct lcl_eraseMapEntry :
- public std::unary_function< K, void >
+struct lcl_eraseMapEntry
{
explicit lcl_eraseMapEntry( std::map< K, V > & rMap )
: m_rMap( rMap )
@@ -70,8 +67,7 @@ private:
std::map< K, V > m_rMap;
};
-struct lcl_replaceInterfacePropertiesByClones :
- public std::unary_function< ::property::impl::ImplOPropertySet::tPropertyMap::value_type, void >
+struct lcl_replaceInterfacePropertiesByClones
{
void operator() ( ::property::impl::ImplOPropertySet::tPropertyMap::value_type & rProp )
{
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx
index dad11d5d573f..384420c0681a 100644
--- a/chart2/source/tools/InternalDataProvider.cxx
+++ b/chart2/source/tools/InternalDataProvider.cxx
@@ -89,7 +89,7 @@ std::vector< uno::Any > lcl_StringToAnyVector( const css::uno::Sequence< OUStrin
return aResult;
}
-struct lcl_setModified : public std::unary_function< lcl_tSequenceMap, void >
+struct lcl_setModified
{
void operator() ( const lcl_tSequenceMap::value_type & rMapEntry )
{
@@ -104,7 +104,7 @@ struct lcl_setModified : public std::unary_function< lcl_tSequenceMap, void >
}
};
-struct lcl_internalizeSeries : public std::unary_function< Reference< chart2::XDataSeries >, void >
+struct lcl_internalizeSeries
{
lcl_internalizeSeries( InternalData & rInternalData,
InternalDataProvider & rProvider,
@@ -181,7 +181,7 @@ private:
bool m_bDataInColumns;
};
-struct lcl_copyFromLevel : public std::unary_function< vector< uno::Any >, uno::Any >
+struct lcl_copyFromLevel
{
public:
@@ -200,7 +200,7 @@ private:
sal_Int32 m_nLevel;
};
-struct lcl_getStringFromLevelVector : public std::unary_function< vector< uno::Any >, OUString >
+struct lcl_getStringFromLevelVector
{
public:
@@ -259,7 +259,7 @@ private:
sal_Int32 m_nLevel;
};
-struct lcl_insertAnyAtLevel : public std::unary_function< vector< uno::Any >, void >
+struct lcl_insertAnyAtLevel
{
public:
@@ -282,7 +282,7 @@ private:
sal_Int32 m_nLevel;
};
-struct lcl_removeAnyAtLevel : public std::unary_function< vector< uno::Any >, void >
+struct lcl_removeAnyAtLevel
{
public:
diff --git a/chart2/source/tools/ModifyListenerHelper.cxx b/chart2/source/tools/ModifyListenerHelper.cxx
index 87a8f356073a..c6fd1d604773 100644
--- a/chart2/source/tools/ModifyListenerHelper.cxx
+++ b/chart2/source/tools/ModifyListenerHelper.cxx
@@ -57,17 +57,15 @@ void lcl_fireModifyEvent(
}
}
-struct lcl_weakReferenceToSame : public std::unary_function<
- std::pair<
- css::uno::WeakReference< css::util::XModifyListener >,
- css::uno::Reference< css::util::XModifyListener > >,
- bool >
+struct lcl_weakReferenceToSame
{
explicit lcl_weakReferenceToSame( const Reference< util::XModifyListener > & xModListener ) :
m_xHardRef( xModListener )
{}
- bool operator() ( const argument_type & xElem )
+ // argument type is same as tListenerMap::value_type&
+ bool operator() ( const std::pair,
+ css::uno::Reference< css::util::XModifyListener> > & xElem )
{
Reference< util::XModifyListener > xWeakAsHard( xElem.first );
if( xWeakAsHard.is())
diff --git a/chart2/source/tools/PropertyHelper.cxx b/chart2/source/tools/PropertyHelper.cxx
index 8741037b6014..3b0f71839830 100644
--- a/chart2/source/tools/PropertyHelper.cxx
+++ b/chart2/source/tools/PropertyHelper.cxx
@@ -27,7 +27,6 @@
#include
#include
#include
-#include
using namespace ::com::sun::star;
using namespace ::com::sun::star::beans;
@@ -36,7 +35,7 @@ using ::com::sun::star::uno::Reference;
namespace
{
-struct lcl_EqualsElement : public std::unary_function< OUString, bool >
+struct lcl_EqualsElement
{
explicit lcl_EqualsElement( const Any & rValue, const Reference< container::XNameAccess > & xAccess )
: m_aValue( rValue ), m_xAccess( xAccess )
@@ -62,7 +61,7 @@ private:
Reference< container::XNameAccess > m_xAccess;
};
-struct lcl_StringMatches : public std::unary_function< OUString ,bool >
+struct lcl_StringMatches
{
explicit lcl_StringMatches( const OUString & rCmpStr ) :
m_aCmpStr( rCmpStr )
@@ -77,7 +76,7 @@ private:
OUString m_aCmpStr;
};
-struct lcl_OUStringRestToInt32 : public std::unary_function< OUString, sal_Int32 >
+struct lcl_OUStringRestToInt32
{
explicit lcl_OUStringRestToInt32( sal_Int32 nPrefixLength ) :
m_nPrefixLength( nPrefixLength )
diff --git a/chart2/source/tools/XMLRangeHelper.cxx b/chart2/source/tools/XMLRangeHelper.cxx
index 1a484dbb6db5..e89b1a074f5b 100644
--- a/chart2/source/tools/XMLRangeHelper.cxx
+++ b/chart2/source/tools/XMLRangeHelper.cxx
@@ -23,7 +23,6 @@
#include
#include
-#include
namespace
{
@@ -31,7 +30,7 @@ namespace
array (which you can get from an OUString with getStr()) and puts the result
into the OUStringBuffer given in the CTOR
*/
-class lcl_Escape : public std::unary_function< sal_Unicode, void >
+class lcl_Escape
{
public:
explicit lcl_Escape( OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {}
@@ -54,7 +53,7 @@ private:
you can get from an OUString with getStr()) and puts the result into the
OUStringBuffer given in the CTOR
*/
-class lcl_UnEscape : public std::unary_function< sal_Unicode, void >
+class lcl_UnEscape
{
public:
explicit lcl_UnEscape( OUStringBuffer & aResultBuffer ) : m_aResultBuffer( aResultBuffer ) {}
diff --git a/comphelper/source/misc/asyncnotification.cxx b/comphelper/source/misc/asyncnotification.cxx
index bb53b096a5d7..88489ec65e3a 100644
--- a/comphelper/source/misc/asyncnotification.cxx
+++ b/comphelper/source/misc/asyncnotification.cxx
@@ -27,7 +27,6 @@
#include
#include
#include
-#include
#include
namespace comphelper
@@ -60,7 +59,7 @@ namespace comphelper
typedef std::deque< ProcessableEvent > EventQueue;
- struct EqualProcessor : public std::unary_function< ProcessableEvent, bool >
+ struct EqualProcessor
{
const ::rtl::Reference< IEventProcessor >& rProcessor;
explicit EqualProcessor( const ::rtl::Reference< IEventProcessor >& _rProcessor ) :rProcessor( _rProcessor ) { }
diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx
index 84e705f8b287..a6f732937b4e 100644
--- a/comphelper/source/misc/namedvaluecollection.cxx
+++ b/comphelper/source/misc/namedvaluecollection.cxx
@@ -28,7 +28,6 @@
#include
#include
-#include
#include
namespace comphelper
@@ -311,7 +310,7 @@ namespace comphelper
namespace
{
- struct Value2PropertyValue : public std::unary_function< NamedValueRepository::value_type, PropertyValue >
+ struct Value2PropertyValue
{
PropertyValue operator()( const NamedValueRepository::value_type& _rValue )
{
@@ -320,7 +319,7 @@ namespace comphelper
}
};
- struct Value2NamedValue : public std::unary_function< NamedValueRepository::value_type, NamedValue >
+ struct Value2NamedValue
{
NamedValue operator()( const NamedValueRepository::value_type& _rValue )
{
diff --git a/comphelper/source/property/opropertybag.cxx b/comphelper/source/property/opropertybag.cxx
index e36507a599ed..740de1ca2df4 100644
--- a/comphelper/source/property/opropertybag.cxx
+++ b/comphelper/source/property/opropertybag.cxx
@@ -359,7 +359,7 @@ namespace comphelper
};
template< typename CLASS >
- struct TransformPropertyToName : public std::unary_function< CLASS, OUString >
+ struct TransformPropertyToName
{
const OUString& operator()( const CLASS& _rProp )
{
@@ -367,7 +367,7 @@ namespace comphelper
}
};
- struct ExtractPropertyValue : public std::unary_function< PropertyValue, Any >
+ struct ExtractPropertyValue
{
const Any& operator()( const PropertyValue& _rProp )
{
diff --git a/comphelper/source/property/opropertybag.hxx b/comphelper/source/property/opropertybag.hxx
index 650f981852ed..95736d7923db 100644
--- a/comphelper/source/property/opropertybag.hxx
+++ b/comphelper/source/property/opropertybag.hxx
@@ -44,7 +44,7 @@ namespace comphelper
{
- struct UnoTypeLess : public std::unary_function< css::uno::Type, bool >
+ struct UnoTypeLess
{
bool operator()( const css::uno::Type& _rLHS, const css::uno::Type& _rRHS ) const
{
diff --git a/comphelper/source/property/propertycontainerhelper.cxx b/comphelper/source/property/propertycontainerhelper.cxx
index dcde4190d495..7a57de445f98 100644
--- a/comphelper/source/property/propertycontainerhelper.cxx
+++ b/comphelper/source/property/propertycontainerhelper.cxx
@@ -49,7 +49,7 @@ namespace
}
};
// comparing two property descriptions (by name)
- struct PropertyDescriptionNameMatch : public std::unary_function< PropertyDescription, bool >
+ struct PropertyDescriptionNameMatch
{
OUString m_rCompare;
explicit PropertyDescriptionNameMatch( const OUString& _rCompare ) : m_rCompare( _rCompare ) { }
diff --git a/connectivity/source/cpool/ZConnectionPool.cxx b/connectivity/source/cpool/ZConnectionPool.cxx
index 0e6be4f36039..ce485b45cd75 100644
--- a/connectivity/source/cpool/ZConnectionPool.cxx
+++ b/connectivity/source/cpool/ZConnectionPool.cxx
@@ -77,8 +77,7 @@ OConnectionPool::~OConnectionPool()
clear(false);
}
-struct TRemoveEventListenerFunctor : std::unary_function
- ,std::unary_function
+struct TRemoveEventListenerFunctor
{
OConnectionPool* m_pConnectionPool;
bool m_bDispose;
@@ -113,7 +112,7 @@ struct TRemoveEventListenerFunctor : std::unary_function
+struct TConnectionPoolFunctor
{
OConnectionPool* m_pConnectionPool;
diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx
index bbc6314d5e32..3905932fed85 100644
--- a/connectivity/source/manager/mdrivermanager.cxx
+++ b/connectivity/source/manager/mdrivermanager.cxx
@@ -103,7 +103,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( )
/// an STL functor which ensures that a SdbcDriver described by a DriverAccess is loaded
- struct EnsureDriver : public std::unary_function< DriverAccess, DriverAccess >
+ struct EnsureDriver
{
explicit EnsureDriver( const Reference< XComponentContext > &rxContext )
: mxContext( rxContext ) {}
@@ -138,7 +138,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( )
};
/// an STL functor which extracts a SdbcDriver from a DriverAccess
- struct ExtractDriverFromAccess : public std::unary_function< DriverAccess, const Reference& >
+ struct ExtractDriverFromAccess
{
const Reference& operator()( const DriverAccess& _rAccess ) const
{
@@ -146,7 +146,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( )
}
};
- struct ExtractDriverFromCollectionElement : public std::unary_function< DriverCollection::value_type, const Reference& >
+ struct ExtractDriverFromCollectionElement
{
const Reference& operator()( const DriverCollection::value_type& _rElement ) const
{
@@ -155,7 +155,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( )
};
// predicate for checking whether or not a driver accepts a given URL
- class AcceptsURL : public std::unary_function< Reference, bool >
+ class AcceptsURL
{
protected:
const OUString& m_rURL;
diff --git a/connectivity/source/sdbcx/VDescriptor.cxx b/connectivity/source/sdbcx/VDescriptor.cxx
index fa0bb3fe2459..5c9c899f7991 100644
--- a/connectivity/source/sdbcx/VDescriptor.cxx
+++ b/connectivity/source/sdbcx/VDescriptor.cxx
@@ -20,7 +20,6 @@
#include
#include
-#include
#include
#include
@@ -64,14 +63,14 @@ namespace connectivity
namespace
{
- struct ResetROAttribute : public std::unary_function< Property, void >
+ struct ResetROAttribute
{
void operator ()( Property& _rProperty ) const
{
_rProperty.Attributes &= ~PropertyAttribute::READONLY;
}
};
- struct SetROAttribute : public std::unary_function< Property, void >
+ struct SetROAttribute
{
void operator ()( Property& _rProperty ) const
{
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx
index db32cec51d08..0439a242e5a4 100644
--- a/cppu/source/uno/lbenv.cxx
+++ b/cppu/source/uno/lbenv.cxx
@@ -93,8 +93,7 @@ struct ObjectEntry
};
-struct FctPtrHash :
- public std::unary_function< const void *, std::size_t >
+struct FctPtrHash
{
std::size_t operator () ( const void * pKey ) const
{ return reinterpret_cast< std::size_t>( pKey ); }
diff --git a/cppu/source/uno/lbmap.cxx b/cppu/source/uno/lbmap.cxx
index e8dcc574e58a..c1b52f4f27a3 100644
--- a/cppu/source/uno/lbmap.cxx
+++ b/cppu/source/uno/lbmap.cxx
@@ -130,7 +130,7 @@ struct MappingEntry
{}
};
-struct FctPtrHash : public std::unary_function< uno_Mapping *, size_t >
+struct FctPtrHash
{
size_t operator()( uno_Mapping * pKey ) const
{ return reinterpret_cast(pKey); }
diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx
index ee3109b5e2b4..dc917cf7a72f 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -2033,7 +2033,7 @@ Reference< XInterface > ODatabaseDocument::getThis() const
return *const_cast< ODatabaseDocument* >( this );
}
-struct CreateAny : public std::unary_function< Reference, Any>
+struct CreateAny
{
Any operator() (const Reference& lhs) const
{
diff --git a/dbaccess/source/core/dataaccess/datasource.cxx b/dbaccess/source/core/dataaccess/datasource.cxx
index c56f67b90f18..81df15a36620 100644
--- a/dbaccess/source/core/dataaccess/datasource.cxx
+++ b/dbaccess/source/core/dataaccess/datasource.cxx
@@ -442,7 +442,7 @@ namespace
typedef std::map< OUString, sal_Int32 > PropertyAttributeCache;
- struct IsDefaultAndNotRemoveable : public std::unary_function< PropertyValue, bool >
+ struct IsDefaultAndNotRemoveable
{
private:
const PropertyAttributeCache& m_rAttribs;
@@ -796,7 +796,7 @@ sal_Bool ODatabaseSource::convertFastPropertyValue(Any & rConvertedValue, Any &
namespace
{
- struct SelectPropertyName : public std::unary_function< PropertyValue, OUString >
+ struct SelectPropertyName
{
public:
const OUString& operator()( const PropertyValue& _lhs )
diff --git a/dbaccess/source/core/inc/composertools.hxx b/dbaccess/source/core/inc/composertools.hxx
index 986f23948a66..91f790495948 100644
--- a/dbaccess/source/core/inc/composertools.hxx
+++ b/dbaccess/source/core/inc/composertools.hxx
@@ -23,13 +23,11 @@
#include
#include
-#include
-
namespace dbaccess
{
// TokenComposer
- struct TokenComposer : public std::unary_function< OUString, void >
+ struct TokenComposer
{
private:
#ifdef DBG_UTIL
diff --git a/dbaccess/source/core/misc/DatabaseDataProvider.cxx b/dbaccess/source/core/misc/DatabaseDataProvider.cxx
index eaa8afec3cd8..ef6345f0b024 100644
--- a/dbaccess/source/core/misc/DatabaseDataProvider.cxx
+++ b/dbaccess/source/core/misc/DatabaseDataProvider.cxx
@@ -634,7 +634,7 @@ namespace
}
};
- struct CreateColumnDescription : public std::unary_function< OUString, ColumnDescription >
+ struct CreateColumnDescription
{
ColumnDescription operator()( const OUString& i_rName )
{
@@ -642,7 +642,7 @@ namespace
}
};
- struct SelectColumnName : public std::unary_function< ColumnDescription, OUString >
+ struct SelectColumnName
{
const OUString& operator()( const ColumnDescription& i_rColumn )
{
diff --git a/dbaccess/source/ui/app/subcomponentmanager.cxx b/dbaccess/source/ui/app/subcomponentmanager.cxx
index 851c67cf79a1..bb66c221b918 100644
--- a/dbaccess/source/ui/app/subcomponentmanager.cxx
+++ b/dbaccess/source/ui/app/subcomponentmanager.cxx
@@ -37,7 +37,6 @@
#include
#include
-#include
namespace dbaui
{
@@ -157,7 +156,7 @@ namespace dbaui
}
};
- struct SelectSubComponent : public std::unary_function< SubComponentDescriptor, Reference< XComponent > >
+ struct SelectSubComponent
{
Reference< XComponent > operator()( const SubComponentDescriptor &_desc ) const
{
@@ -170,7 +169,7 @@ namespace dbaui
typedef std::vector< SubComponentDescriptor > SubComponents;
- struct SubComponentMatch : public std::unary_function< SubComponentDescriptor, bool >
+ struct SubComponentMatch
{
public:
SubComponentMatch( const OUString& i_rName, const sal_Int32 i_nComponentType,
diff --git a/dbaccess/source/ui/browser/genericcontroller.cxx b/dbaccess/source/ui/browser/genericcontroller.cxx
index 4dc69a4830df..5e5d83a5e8fd 100644
--- a/dbaccess/source/ui/browser/genericcontroller.cxx
+++ b/dbaccess/source/ui/browser/genericcontroller.cxx
@@ -1260,7 +1260,7 @@ Sequence< ::sal_Int16 > SAL_CALL OGenericUnoController::getSupportedCommandGroup
namespace
{
//Current c++0x draft (apparently) has std::identity, but not operator()
- template struct SGI_identity : public std::unary_function
+ template struct SGI_identity
{
T& operator()(T& x) const { return x; }
const T& operator()(const T& x) const { return x; }
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx
index ad7439446c1f..f40df7404bdd 100644
--- a/dbaccess/source/ui/browser/sbagrid.cxx
+++ b/dbaccess/source/ui/browser/sbagrid.cxx
@@ -1215,7 +1215,7 @@ void SbaGridControl::DoFieldDrag(sal_uInt16 nColumnPos, sal_Int16 nRowPos)
}
/// unary_function Functor object for class ZZ returntype is void
- struct SbaGridControlPrec : std::unary_function
+ struct SbaGridControlPrec
{
bool operator()(const DataFlavorExVector::value_type& _aType)
{
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index 241fa9aa19ad..782bfdbea876 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -386,7 +386,7 @@ bool SbaTableQueryBrowser::Construct(vcl::Window* pParent)
namespace
{
- struct SelectValueByName : public std::unary_function< OUString, Any >
+ struct SelectValueByName
{
const Any& operator()( OUString const& i_name ) const
{
diff --git a/dbaccess/source/ui/control/tabletree.cxx b/dbaccess/source/ui/control/tabletree.cxx
index cdaddb7069b5..b29cba9d1328 100644
--- a/dbaccess/source/ui/control/tabletree.cxx
+++ b/dbaccess/source/ui/control/tabletree.cxx
@@ -178,7 +178,7 @@ void OTableTreeListBox::UpdateTableList( const Reference< XConnection >& _rxConn
namespace
{
- struct OViewSetter : public std::unary_function< OTableTreeListBox::TNames::value_type, bool>
+ struct OViewSetter
{
const Sequence< OUString> m_aViews;
::comphelper::UStringMixEqual m_aEqualFunctor;
diff --git a/dbaccess/source/ui/inc/TableCopyHelper.hxx b/dbaccess/source/ui/inc/TableCopyHelper.hxx
index 187f2fcb46c7..376dd600e785 100644
--- a/dbaccess/source/ui/inc/TableCopyHelper.hxx
+++ b/dbaccess/source/ui/inc/TableCopyHelper.hxx
@@ -26,14 +26,13 @@
#include
#include
#include
-#include
class SvTreeListEntry;
namespace dbaui
{
class OGenericUnoController;
- /// unary_function Functor object for class DataFlavorExVector::value_type returntype is bool
- struct TAppSupportedSotFunctor : std::unary_function
+ /// Functor object for class DataFlavorExVector::value_type returntype is bool
+ struct TAppSupportedSotFunctor
{
ElementType eEntryType;
TAppSupportedSotFunctor(const ElementType& _eEntryType)
diff --git a/dbaccess/source/ui/inc/WCopyTable.hxx b/dbaccess/source/ui/inc/WCopyTable.hxx
index f8042af896e9..68981577cc6c 100644
--- a/dbaccess/source/ui/inc/WCopyTable.hxx
+++ b/dbaccess/source/ui/inc/WCopyTable.hxx
@@ -45,8 +45,7 @@
namespace dbaui
{
- typedef std::unary_function< OUString,bool> TColumnFindFunctorType;
- class TColumnFindFunctor : public TColumnFindFunctorType
+ class TColumnFindFunctor
{
public:
virtual bool operator()(const OUString& _sColumnName) const = 0;
diff --git a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
index bd08fe05087f..bcde5918a1f7 100644
--- a/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
+++ b/dbaccess/source/ui/querydesign/TableFieldDescription.cxx
@@ -24,8 +24,6 @@
#include
#include
-#include
-
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
@@ -119,7 +117,7 @@ OUString OTableFieldDesc::GetCriteria( sal_uInt16 nIdx ) const
namespace
{
- struct SelectPropertyValueAsString : public std::unary_function< PropertyValue, OUString >
+ struct SelectPropertyValueAsString
{
OUString operator()( const PropertyValue& i_rPropValue ) const
{
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx
index cc060c4f0b31..950a478b6ec1 100644
--- a/desktop/source/deployment/registry/package/dp_package.cxx
+++ b/desktop/source/deployment/registry/package/dp_package.cxx
@@ -249,7 +249,7 @@ public:
};
//Used to find a XPackage with a particular URL
-class XPackage_eq : public std::unary_function, bool>
+class XPackage_eq
{
OUString m_URL;
public:
diff --git a/editeng/source/accessibility/AccessibleParaManager.cxx b/editeng/source/accessibility/AccessibleParaManager.cxx
index 4d77ba95698d..6acfee2abd8c 100644
--- a/editeng/source/accessibility/AccessibleParaManager.cxx
+++ b/editeng/source/accessibility/AccessibleParaManager.cxx
@@ -266,7 +266,7 @@ namespace accessibility
}
// not generic yet, no arguments...
- class AccessibleParaManager_DisposeChildren : public std::unary_function< ::accessibility::AccessibleEditableTextPara&, void >
+ class AccessibleParaManager_DisposeChildren
{
public:
AccessibleParaManager_DisposeChildren() {}
@@ -285,7 +285,7 @@ namespace accessibility
}
// not generic yet, too many method arguments...
- class StateChangeEvent : public std::unary_function< ::accessibility::AccessibleEditableTextPara&, void >
+ class StateChangeEvent
{
public:
typedef void return_type;
@@ -335,7 +335,7 @@ namespace accessibility
}
}
- class ReleaseChild : public std::unary_function< const AccessibleParaManager::WeakChild&, AccessibleParaManager::WeakChild >
+ class ReleaseChild
{
public:
AccessibleParaManager::WeakChild operator()( const AccessibleParaManager::WeakChild& rPara )
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 28c2641d43c4..cdd538a39f23 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -464,7 +464,7 @@ void TextPortionList::Remove(sal_Int32 nPos)
namespace {
-class FindTextPortionByAddress : public std::unary_function, bool>
+class FindTextPortionByAddress
{
const TextPortion* mp;
public:
@@ -1990,7 +1990,7 @@ EditDoc::~EditDoc()
namespace {
-class RemoveEachItemFromPool : public std::unary_function, void>
+class RemoveEachItemFromPool
{
EditDoc& mrDoc;
public:
@@ -2001,7 +2001,7 @@ public:
}
};
-struct ClearSpellErrorsHandler : std::unary_function, void>
+struct ClearSpellErrorsHandler
{
void operator() (std::unique_ptr& rNode)
{
@@ -2920,7 +2920,7 @@ bool CharAttribList::HasAttrib( sal_Int32 nStartPos, sal_Int32 nEndPos ) const
namespace {
-class FindByAddress : public std::unary_function, bool>
+class FindByAddress
{
const EditCharAttrib* mpAttr;
public:
@@ -2985,7 +2985,7 @@ EditCharAttrib* CharAttribList::FindEmptyAttrib( sal_uInt16 nWhich, sal_Int32 nP
namespace {
-class FindByStartPos : public std::unary_function, bool>
+class FindByStartPos
{
sal_Int32 mnPos;
public:
@@ -3015,7 +3015,7 @@ const EditCharAttrib* CharAttribList::FindFeature( sal_Int32 nPos ) const
namespace {
-class RemoveEmptyAttrItem : public std::unary_function, void>
+class RemoveEmptyAttrItem
{
SfxItemPool& mrItemPool;
public:
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx
index 6c51e587b5be..f8358514f43a 100644
--- a/editeng/source/editeng/editobj.cxx
+++ b/editeng/source/editeng/editobj.cxx
@@ -881,7 +881,7 @@ bool EditTextObjectImpl::RemoveCharAttribs( sal_uInt16 _nWhich )
namespace {
-class FindByParagraph : public std::unary_function
+class FindByParagraph
{
sal_Int32 mnPara;
public:
@@ -892,7 +892,7 @@ public:
}
};
-class FindBySectionStart : public std::unary_function
+class FindBySectionStart
{
sal_Int32 mnPara;
sal_Int32 mnStart;
@@ -1090,7 +1090,7 @@ void EditTextObjectImpl::ChangeStyleSheetName( SfxStyleFamily eFamily,
namespace {
-class FindAttribByChar : public std::unary_function, bool>
+class FindAttribByChar
{
sal_uInt16 mnWhich;
sal_Int32 mnChar;
diff --git a/editeng/source/editeng/editundo.cxx b/editeng/source/editeng/editundo.cxx
index 271a29cd62f4..a3dfdbe9c445 100644
--- a/editeng/source/editeng/editundo.cxx
+++ b/editeng/source/editeng/editundo.cxx
@@ -510,7 +510,7 @@ EditUndoSetAttribs::EditUndoSetAttribs(EditEngine* pEE, const ESelection& rESel,
namespace {
-struct RemoveAttribsFromPool : std::unary_function, void>
+struct RemoveAttribsFromPool
{
SfxItemPool& mrPool;
public:
diff --git a/extensions/source/bibliography/formcontrolcontainer.cxx b/extensions/source/bibliography/formcontrolcontainer.cxx
index 8019a772bdb0..ecae8048537c 100644
--- a/extensions/source/bibliography/formcontrolcontainer.cxx
+++ b/extensions/source/bibliography/formcontrolcontainer.cxx
@@ -21,7 +21,6 @@
#include
#include
-#include
namespace bib
{
@@ -71,7 +70,7 @@ namespace bib
m_xForm = _rxForm;
}
- struct ControlModeSwitch : public std::unary_function< Reference< XControl >, void >
+ struct ControlModeSwitch
{
bool bDesign;
explicit ControlModeSwitch( bool _bDesign ) : bDesign( _bDesign ) { }
diff --git a/extensions/source/propctrlr/cellbindinghelper.cxx b/extensions/source/propctrlr/cellbindinghelper.cxx
index 47b146b0bc9c..42304b077df6 100644
--- a/extensions/source/propctrlr/cellbindinghelper.cxx
+++ b/extensions/source/propctrlr/cellbindinghelper.cxx
@@ -37,7 +37,6 @@
#include
#include "formstrings.hxx"
-#include
#include
@@ -60,7 +59,7 @@ namespace pcr
namespace
{
- struct StringCompare : public std::unary_function< OUString, bool >
+ struct StringCompare
{
private:
OUString m_sReference;
diff --git a/extensions/source/propctrlr/composeduiupdate.cxx b/extensions/source/propctrlr/composeduiupdate.cxx
index c438f3207400..e39932925d81 100644
--- a/extensions/source/propctrlr/composeduiupdate.cxx
+++ b/extensions/source/propctrlr/composeduiupdate.cxx
@@ -393,7 +393,7 @@ namespace pcr
{
// an STL-compatible structure which collects strings from a CachedInspectorUI instances
- struct StringBagCollector : public std::unary_function< ImplMapHandlerToUI::value_type, void >
+ struct StringBagCollector
{
private:
StringBag& m_rBag;
@@ -416,7 +416,7 @@ namespace pcr
// an STL-compatible structure which cleans a certain string bag in a CachedInspectorUI instances
- struct StringBagClearer : public std::unary_function< ImplMapHandlerToUI::value_type, void >
+ struct StringBagClearer
{
private:
CachedInspectorUI::FGetStringBag m_pGetter;
@@ -441,7 +441,7 @@ namespace pcr
// an STL-compatible struct which calls a certain member method (taking a string) at a
// given ->XObjectInspectorUI instance
- struct PropertyUIOperator : public std::unary_function< OUString, void >
+ struct PropertyUIOperator
{
private:
Reference< XObjectInspectorUI > m_xUpdater;
@@ -541,7 +541,7 @@ namespace pcr
// an STL-compatible structure which applies a ->IStringKeyBooleanUIUpdate::updateUIForKey
// operation with a fixed boolean value, for a given string value
- struct BooleanUIAspectUpdate : public std::unary_function< OUString, void >
+ struct BooleanUIAspectUpdate
{
private:
const IStringKeyBooleanUIUpdate& m_rUpdater;
@@ -569,7 +569,7 @@ namespace pcr
// BooleanUIAspectUpdate
// an STL-compatible structure subtracting a given string from a fixed ->StringBag
- struct StringBagComplement : public std::unary_function< OUString, void >
+ struct StringBagComplement
{
private:
StringBag& m_rMinuend;
diff --git a/extensions/source/propctrlr/eformshelper.cxx b/extensions/source/propctrlr/eformshelper.cxx
index c468edd23fa2..19b64557c5f4 100644
--- a/extensions/source/propctrlr/eformshelper.cxx
+++ b/extensions/source/propctrlr/eformshelper.cxx
@@ -33,7 +33,6 @@
#include
#include
-#include
#include
#include
@@ -571,7 +570,7 @@ namespace pcr
namespace
{
- struct PropertyBagInserter : public std::unary_function< Property, void >
+ struct PropertyBagInserter
{
private:
PropertyBag& m_rProperties;
diff --git a/extensions/source/propctrlr/formbrowsertools.hxx b/extensions/source/propctrlr/formbrowsertools.hxx
index eba6ee1155fb..6abc42d7a477 100644
--- a/extensions/source/propctrlr/formbrowsertools.hxx
+++ b/extensions/source/propctrlr/formbrowsertools.hxx
@@ -36,7 +36,7 @@ namespace pcr
sal_Int16 classifyComponent( const css::uno::Reference< css::uno::XInterface >& _rxComponent );
- struct FindPropertyByHandle : public std::unary_function< css::beans::Property, bool >
+ struct FindPropertyByHandle
{
private:
sal_Int32 m_nId;
@@ -50,7 +50,7 @@ namespace pcr
};
- struct FindPropertyByName : public std::unary_function< css::beans::Property, bool >
+ struct FindPropertyByName
{
private:
OUString m_sName;
diff --git a/extensions/source/propctrlr/propertycomposer.cxx b/extensions/source/propctrlr/propertycomposer.cxx
index 4c51d017dafe..04c9bd82995c 100644
--- a/extensions/source/propctrlr/propertycomposer.cxx
+++ b/extensions/source/propctrlr/propertycomposer.cxx
@@ -25,7 +25,6 @@
#include
#include
-#include
#include
#include
#include