summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-10-29 12:43:54 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-10-31 03:48:49 +0000
commitb589c4cd8765b0611afe435354364df891d78852 (patch)
tree4dbfacf74480e2154a2e38c3fd41fe9d34f08fc3 /xmloff/source
parent3d83c42008ab51202c0577f493e8ed3fde0310b7 (diff)
Omit comparator which is the same as default std::less<key_type>
Change-Id: I72a0b618577caececaaf3eb4df53d4cb192251da Reviewed-on: https://gerrit.libreoffice.org/30369 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/draw/shapeimport.cxx10
-rw-r--r--xmloff/source/style/xmlnumfe.cxx10
2 files changed, 2 insertions, 18 deletions
diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx
index f36da5f7d3ff..121ab34fd6bf 100644
--- a/xmloff/source/draw/shapeimport.cxx
+++ b/xmloff/source/draw/shapeimport.cxx
@@ -49,14 +49,6 @@ using namespace ::std;
using namespace ::com::sun::star;
using namespace ::xmloff::token;
-struct ltint32
-{
- bool operator()(const sal_Int32 p, sal_Int32 q) const
- {
- return p < q;
- }
-};
-
struct ConnectionHint
{
css::uno::Reference< css::drawing::XShape > mxConnector;
@@ -76,7 +68,7 @@ struct XShapeCompareHelper
/** this map store all glue point id mappings for shapes that had user defined glue points. This
is needed because on insertion the glue points will get a new and unique id */
-typedef std::map<sal_Int32,sal_Int32,ltint32> GluePointIdMap;
+typedef std::map<sal_Int32,sal_Int32> GluePointIdMap;
typedef std::map< css::uno::Reference < css::drawing::XShape >, GluePointIdMap, XShapeCompareHelper > ShapeGluePointsMap;
/** this struct is created for each startPage() call and stores information that is needed during
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx
index 98b5c4690539..11c05c6ee154 100644
--- a/xmloff/source/style/xmlnumfe.cxx
+++ b/xmloff/source/style/xmlnumfe.cxx
@@ -52,15 +52,7 @@ using namespace ::com::sun::star;
using namespace ::xmloff::token;
using namespace ::svt;
-struct LessuInt32
-{
- bool operator() (const sal_uInt32 rValue1, const sal_uInt32 rValue2) const
- {
- return rValue1 < rValue2;
- }
-};
-
-typedef std::set< sal_uInt32, LessuInt32 > SvXMLuInt32Set;
+typedef std::set< sal_uInt32 > SvXMLuInt32Set;
struct SvXMLEmbeddedTextEntry
{