loplugin:subtlezeroinit: chart2

Change-Id: I9012f97b188195140504dacb262c212d46df675a
This commit is contained in:
Stephan Bergmann
2017-02-20 20:02:05 +01:00
parent db760ac665
commit b8e85c6a64
5 changed files with 5 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ VCL_BUILDER_FACTORY_CONSTRUCTOR(SeriesListBox, 0)
SvTreeListEntry* SeriesListBox::CreateEntry() const
{
return new SeriesEntry();
return new SeriesEntry;
}
} // namespace chart

View File

@@ -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 )
{

View File

@@ -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),

View File

@@ -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 );
}

View File

@@ -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;