summaryrefslogtreecommitdiff
path: root/chart2/source/tools/ObjectIdentifier.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-24 20:11:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-25 06:11:27 +0000
commita82805f8f97eeb6acadd7806cdb7120bed45a376 (patch)
tree213a2cae70d328a9e78bae7081a6dfa4025d95f1 /chart2/source/tools/ObjectIdentifier.cxx
parent2b68383e44338ffc3d5fb519fd91ff31f0a2b35a (diff)
Kill comphelper::MakeMap
Change-Id: I97e9e79ef51e3d78f01b831dd3eee91218058823 Reviewed-on: https://gerrit.libreoffice.org/24344 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2/source/tools/ObjectIdentifier.cxx')
-rw-r--r--chart2/source/tools/ObjectIdentifier.cxx25
1 files changed, 13 insertions, 12 deletions
diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx
index 198d49426f20..7ef0a95891e4 100644
--- a/chart2/source/tools/ObjectIdentifier.cxx
+++ b/chart2/source/tools/ObjectIdentifier.cxx
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
+#include <map>
+
#include "ObjectIdentifier.hxx"
#include "macros.hxx"
#include "TitleHelper.hxx"
@@ -34,8 +38,6 @@
#include <com/sun/star/chart2/XAxis.hpp>
#include <com/sun/star/chart2/XRegressionCurveContainer.hpp>
-#include <comphelper/InlineContainer.hxx>
-
#include <rtl/ustrbuf.hxx>
namespace chart
@@ -92,19 +94,18 @@ OUString lcl_createClassificationStringForType( ObjectType eObjectType
return aRet.makeStringAndClear();
}
-typedef ::comphelper::MakeMap< TitleHelper::eTitleType, OUString > tTitleMap;
+typedef std::map< TitleHelper::eTitleType, OUString > tTitleMap;
const tTitleMap& lcl_getTitleMap()
{
//maps the title type to the ParentParticle for that title
- static tTitleMap s_aTitleMap = tTitleMap
- ( TitleHelper::MAIN_TITLE, "" )
- ( TitleHelper::SUB_TITLE, "D=0" )
- ( TitleHelper::X_AXIS_TITLE, "D=0:CS=0:Axis=0,0" )
- ( TitleHelper::Y_AXIS_TITLE, "D=0:CS=0:Axis=1,0" )
- ( TitleHelper::Z_AXIS_TITLE, "D=0:CS=0:Axis=2,0" )
- ( TitleHelper::SECONDARY_X_AXIS_TITLE, "D=0:CS=0:Axis=0,1" )
- ( TitleHelper::SECONDARY_Y_AXIS_TITLE, "D=0:CS=0:Axis=1,1" )
- ;
+ static tTitleMap s_aTitleMap{
+ {TitleHelper::MAIN_TITLE, ""},
+ {TitleHelper::SUB_TITLE, "D=0"},
+ {TitleHelper::X_AXIS_TITLE, "D=0:CS=0:Axis=0,0"},
+ {TitleHelper::Y_AXIS_TITLE, "D=0:CS=0:Axis=1,0"},
+ {TitleHelper::Z_AXIS_TITLE, "D=0:CS=0:Axis=2,0"},
+ {TitleHelper::SECONDARY_X_AXIS_TITLE, "D=0:CS=0:Axis=0,1"},
+ {TitleHelper::SECONDARY_Y_AXIS_TITLE, "D=0:CS=0:Axis=1,1"}};
return s_aTitleMap;
}