summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-20 20:02:05 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-21 07:35:11 +0100
commitb8e85c6a647942760aceba204367154f2fc44b5c (patch)
treeadf3944ebb7d8e4d63e181f283ea734e3d8aab73 /chart2
parentloplugin:subtlezeroinit: comphelper (diff)
downloadcore-b8e85c6a647942760aceba204367154f2fc44b5c.tar.gz
core-b8e85c6a647942760aceba204367154f2fc44b5c.zip
loplugin:subtlezeroinit: chart2
Change-Id: I9012f97b188195140504dacb262c212d46df675a
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/tp_DataSourceControls.cxx2
-rw-r--r--chart2/source/tools/WrappedPropertySet.cxx2
-rw-r--r--chart2/source/view/charttypes/GL3DBarChart.cxx2
-rw-r--r--chart2/source/view/charttypes/PieChart.cxx2
-rw-r--r--chart2/source/view/main/OpenglShapeFactory.cxx2
5 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/controller/dialogs/tp_DataSourceControls.cxx b/chart2/source/controller/dialogs/tp_DataSourceControls.cxx
index 0a31bcb10abd..f3de9244d747 100644
--- a/chart2/source/controller/dialogs/tp_DataSourceControls.cxx
+++ b/chart2/source/controller/dialogs/tp_DataSourceControls.cxx
@@ -37,7 +37,7 @@ VCL_BUILDER_FACTORY_CONSTRUCTOR(SeriesListBox, 0)
SvTreeListEntry* SeriesListBox::CreateEntry() const
{
- return new SeriesEntry();
+ return new SeriesEntry;
}
} // namespace chart
diff --git a/chart2/source/tools/WrappedPropertySet.cxx b/chart2/source/tools/WrappedPropertySet.cxx
index a88cd561722e..f2881c3efd83 100644
--- a/chart2/source/tools/WrappedPropertySet.cxx
+++ b/chart2/source/tools/WrappedPropertySet.cxx
@@ -426,7 +426,7 @@ tWrappedPropertyMap& WrappedPropertySet::getWrappedPropertyMap()
if(!p)
{
std::vector< WrappedProperty* > aPropList( createWrappedProperties() );
- p = new tWrappedPropertyMap();
+ p = new tWrappedPropertyMap;
for( std::vector< WrappedProperty* >::const_iterator aIt = aPropList.begin(); aIt!=aPropList.end(); ++aIt )
{
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index e0c9567e686d..33e6b1f367fb 100644
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -504,7 +504,7 @@ GL3DBarChart::GL3DBarChart(
mpWindow(pWindow),
mpCamera(nullptr),
mbValidContext(true),
- mpTextCache(new opengl3D::TextCache()),
+ mpTextCache(new opengl3D::TextCache),
mnMaxX(0),
mnMaxY(0),
mnDistance(0.0),
diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx
index 3549ceacdf8b..a80692391fd5 100644
--- a/chart2/source/view/charttypes/PieChart.cxx
+++ b/chart2/source/view/charttypes/PieChart.cxx
@@ -648,7 +648,7 @@ void PieChart::createShapes()
std::unique_ptr< tPropertyNameValueMap > apOverwritePropertiesMap(nullptr);
if (!pSeries->hasPointOwnColor(nPointIndex) && m_xColorScheme.is())
{
- apOverwritePropertiesMap.reset( new tPropertyNameValueMap() );
+ apOverwritePropertiesMap.reset( new tPropertyNameValueMap );
(*apOverwritePropertiesMap)["FillColor"] <<=
m_xColorScheme->getColorByIndex( nPointIndex );
}
diff --git a/chart2/source/view/main/OpenglShapeFactory.cxx b/chart2/source/view/main/OpenglShapeFactory.cxx
index b06ae6afd432..cb2cda88d83a 100644
--- a/chart2/source/view/main/OpenglShapeFactory.cxx
+++ b/chart2/source/view/main/OpenglShapeFactory.cxx
@@ -61,7 +61,7 @@ namespace chart
extern "C" {
SAL_DLLPUBLIC_EXPORT opengl::OpenglShapeFactory* getOpenglShapeFactory()
- { return new opengl::OpenglShapeFactory();}
+ { return new opengl::OpenglShapeFactory;}
}
using dummy::DummyCylinder;