Kaydet (Commit) b8e85c6a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:subtlezeroinit: chart2

Change-Id: I9012f97b188195140504dacb262c212d46df675a
üst db760ac6
...@@ -37,7 +37,7 @@ VCL_BUILDER_FACTORY_CONSTRUCTOR(SeriesListBox, 0) ...@@ -37,7 +37,7 @@ VCL_BUILDER_FACTORY_CONSTRUCTOR(SeriesListBox, 0)
SvTreeListEntry* SeriesListBox::CreateEntry() const SvTreeListEntry* SeriesListBox::CreateEntry() const
{ {
return new SeriesEntry(); return new SeriesEntry;
} }
} // namespace chart } // namespace chart
......
...@@ -426,7 +426,7 @@ tWrappedPropertyMap& WrappedPropertySet::getWrappedPropertyMap() ...@@ -426,7 +426,7 @@ tWrappedPropertyMap& WrappedPropertySet::getWrappedPropertyMap()
if(!p) if(!p)
{ {
std::vector< WrappedProperty* > aPropList( createWrappedProperties() ); std::vector< WrappedProperty* > aPropList( createWrappedProperties() );
p = new tWrappedPropertyMap(); p = new tWrappedPropertyMap;
for( std::vector< WrappedProperty* >::const_iterator aIt = aPropList.begin(); aIt!=aPropList.end(); ++aIt ) for( std::vector< WrappedProperty* >::const_iterator aIt = aPropList.begin(); aIt!=aPropList.end(); ++aIt )
{ {
......
...@@ -504,7 +504,7 @@ GL3DBarChart::GL3DBarChart( ...@@ -504,7 +504,7 @@ GL3DBarChart::GL3DBarChart(
mpWindow(pWindow), mpWindow(pWindow),
mpCamera(nullptr), mpCamera(nullptr),
mbValidContext(true), mbValidContext(true),
mpTextCache(new opengl3D::TextCache()), mpTextCache(new opengl3D::TextCache),
mnMaxX(0), mnMaxX(0),
mnMaxY(0), mnMaxY(0),
mnDistance(0.0), mnDistance(0.0),
......
...@@ -648,7 +648,7 @@ void PieChart::createShapes() ...@@ -648,7 +648,7 @@ void PieChart::createShapes()
std::unique_ptr< tPropertyNameValueMap > apOverwritePropertiesMap(nullptr); std::unique_ptr< tPropertyNameValueMap > apOverwritePropertiesMap(nullptr);
if (!pSeries->hasPointOwnColor(nPointIndex) && m_xColorScheme.is()) if (!pSeries->hasPointOwnColor(nPointIndex) && m_xColorScheme.is())
{ {
apOverwritePropertiesMap.reset( new tPropertyNameValueMap() ); apOverwritePropertiesMap.reset( new tPropertyNameValueMap );
(*apOverwritePropertiesMap)["FillColor"] <<= (*apOverwritePropertiesMap)["FillColor"] <<=
m_xColorScheme->getColorByIndex( nPointIndex ); m_xColorScheme->getColorByIndex( nPointIndex );
} }
......
...@@ -61,7 +61,7 @@ namespace chart ...@@ -61,7 +61,7 @@ namespace chart
extern "C" { extern "C" {
SAL_DLLPUBLIC_EXPORT opengl::OpenglShapeFactory* getOpenglShapeFactory() SAL_DLLPUBLIC_EXPORT opengl::OpenglShapeFactory* getOpenglShapeFactory()
{ return new opengl::OpenglShapeFactory();} { return new opengl::OpenglShapeFactory;}
} }
using dummy::DummyCylinder; using dummy::DummyCylinder;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment