canvas/source/cairo/cairo_spritecanvashelper.cxx             |    3 +-
 canvas/source/tools/spriteredrawmanager.cxx                  |    3 +-
 canvas/workben/canvasdemo.cxx                                |    2 -
 chart2/qa/extras/charttest.hxx                               |    2 -
 chart2/source/controller/dialogs/tp_AxisLabel.cxx            |    2 -
 chart2/source/controller/main/ChartController_Properties.cxx |    4 +--
 chart2/source/controller/main/ControllerCommandDispatch.cxx  |    6 ++---
 chart2/source/controller/main/ShapeController.cxx            |    2 -
 chart2/source/model/main/DataSeriesProperties.cxx            |    2 -
 chart2/source/model/main/Diagram.cxx                         |   12 +++++------
 chart2/source/model/main/PageBackground.cxx                  |    2 -
 chart2/source/tools/ChartTypeHelper.cxx                      |    4 +--
 chart2/source/tools/DiagramHelper.cxx                        |    2 -
 chart2/source/tools/LinePropertiesHelper.cxx                 |    2 -
 chart2/source/tools/PotentialRegressionCurveCalculator.cxx   |   10 ++++-----
 chart2/source/view/main/ShapeFactory.cxx                     |    2 -
 16 files changed, 31 insertions(+), 29 deletions(-)

New commits:
commit 21b224211c998e756a7eb03de30d0737e07b2350
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri Feb 8 09:29:48 2019 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Feb 8 10:01:20 2019 +0100

    loplugin:indentation in canvas..chart2
    
    Change-Id: I9ef57a2e9aaf298f4cfd029aa9b8143871b1bc21
    Reviewed-on: https://gerrit.libreoffice.org/67526
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/canvas/source/cairo/cairo_spritecanvashelper.cxx 
b/canvas/source/cairo/cairo_spritecanvashelper.cxx
index 149643d432cc..b964db61eed9 100644
--- a/canvas/source/cairo/cairo_spritecanvashelper.cxx
+++ b/canvas/source/cairo/cairo_spritecanvashelper.cxx
@@ -337,7 +337,8 @@ namespace cairocanvas
             const 
::canvas::SpriteRedrawManager::SpriteConnectedRanges::ComponentListType::const_iterator
                 aFirst( rUpdateArea.maComponentList.begin() );
             
::canvas::SpriteRedrawManager::SpriteConnectedRanges::ComponentListType::const_iterator
-                  aSecond( aFirst ); ++aSecond;
+                  aSecond( aFirst );
+            ++aSecond;
 
             ENSURE_OR_THROW( aFirst->second.getSprite().is(),
                              "VCLCanvas::scrollUpdate(): no sprite" );
diff --git a/canvas/source/tools/spriteredrawmanager.cxx 
b/canvas/source/tools/spriteredrawmanager.cxx
index f24ef41caf53..b414b8a7ac01 100644
--- a/canvas/source/tools/spriteredrawmanager.cxx
+++ b/canvas/source/tools/spriteredrawmanager.cxx
@@ -335,7 +335,8 @@ namespace canvas
         const SpriteConnectedRanges::ComponentListType::const_iterator aFirst(
             rUpdateArea.maComponentList.begin() );
         SpriteConnectedRanges::ComponentListType::const_iterator aSecond(
-            aFirst ); ++aSecond;
+            aFirst );
+        ++aSecond;
 
         if( !aFirst->second.isPureMove() ||
             !aSecond->second.isPureMove() ||
diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx
index e144c67b0047..bfb9f400ab28 100644
--- a/canvas/workben/canvasdemo.cxx
+++ b/canvas/workben/canvasdemo.cxx
@@ -123,7 +123,7 @@ class DemoRenderer
                                             0, 1 );
             rendering::FontRequest aFontRequest( aFontInfo, 12.0, 0.0, aLocale 
);
             uno::Sequence< beans::PropertyValue > aExtraFontProperties;
-             mxDefaultFont = xCanvas->createFont( aFontRequest, 
aExtraFontProperties, aFontMatrix );
+            mxDefaultFont = xCanvas->createFont( aFontRequest, 
aExtraFontProperties, aFontMatrix );
             if( !mxDefaultFont.is() )
                 fprintf( stderr, "Failed to create font\n" );
         }
diff --git a/chart2/qa/extras/charttest.hxx b/chart2/qa/extras/charttest.hxx
index 84d74de2c117..2141ff8a828d 100644
--- a/chart2/qa/extras/charttest.hxx
+++ b/chart2/qa/extras/charttest.hxx
@@ -593,7 +593,7 @@ awt::Size ChartTest::getPageSize( const Reference< 
chart2::XChartDocument > & xC
     uno::Reference< com::sun::star::embed::XVisualObject > xVisualObject( 
xChartDoc, uno::UNO_QUERY );
     CPPUNIT_ASSERT( xVisualObject.is() );
     aSize = xVisualObject->getVisualAreaSize( 
com::sun::star::embed::Aspects::MSOLE_CONTENT );
-return aSize;
+    return aSize;
 }
 
 awt::Size ChartTest::getSize(css::uno::Reference<chart2::XDiagram> xDiagram, 
const awt::Size& rPageSize)
diff --git a/chart2/source/controller/dialogs/tp_AxisLabel.cxx 
b/chart2/source/controller/dialogs/tp_AxisLabel.cxx
index 46e277159bdb..36062526cdd4 100644
--- a/chart2/source/controller/dialogs/tp_AxisLabel.cxx
+++ b/chart2/source/controller/dialogs/tp_AxisLabel.cxx
@@ -136,7 +136,7 @@ bool SchAxisLabelTabPage::FillItemSet( SfxItemSet* 
rOutAttrs )
 
 void SchAxisLabelTabPage::Reset( const SfxItemSet* rInAttrs )
 {
-   const SfxPoolItem* pPoolItem = nullptr;
+    const SfxPoolItem* pPoolItem = nullptr;
 
     // show description
     SfxItemState aState = rInAttrs->GetItemState( SCHATTR_AXIS_SHOWDESCR, 
false, &pPoolItem );
diff --git a/chart2/source/controller/main/ChartController_Properties.cxx 
b/chart2/source/controller/main/ChartController_Properties.cxx
index 91034b9748cb..f40ab6fc7702 100644
--- a/chart2/source/controller/main/ChartController_Properties.cxx
+++ b/chart2/source/controller/main/ChartController_Properties.cxx
@@ -246,7 +246,7 @@ wrapper::ItemConverter* createItemConverter(
                                         uno::Reference< 
lang::XMultiServiceFactory >( xChartModel, uno::UNO_QUERY ),
                                         eMapTo, pRefSize.get(), bDataSeries, 
bUseSpecialFillColor, nSpecialFillColor, true,
                                         nNumberFormat, nPercentNumberFormat );
-                    break;
+                break;
             }
             case OBJECTTYPE_GRID:
             case OBJECTTYPE_SUBGRID:
@@ -282,7 +282,7 @@ wrapper::ItemConverter* createItemConverter(
                                         xObjectProperties, 
rDrawModel.GetItemPool(), rDrawModel,
                                         uno::Reference< 
lang::XMultiServiceFactory >( xChartModel, uno::UNO_QUERY ),
                                         pRefSize.get());
-                    break;
+                break;
             }
             case OBJECTTYPE_DATA_STOCK_RANGE:
                     break;
diff --git a/chart2/source/controller/main/ControllerCommandDispatch.cxx 
b/chart2/source/controller/main/ControllerCommandDispatch.cxx
index 4b97e5bbdc47..031c4e4cf1cf 100644
--- a/chart2/source/controller/main/ControllerCommandDispatch.cxx
+++ b/chart2/source/controller/main/ControllerCommandDispatch.cxx
@@ -492,9 +492,9 @@ void ControllerCommandDispatch::initialize()
         if( xModifyBroadcaster.is())
             xModifyBroadcaster->addModifyListener( this );
 
-                // Listen selection modifications (Arrangement feature - issue 
63017).
-                if( m_xSelectionSupplier.is() )
-                        m_xSelectionSupplier->addSelectionChangeListener( this 
);
+        // Listen selection modifications (Arrangement feature - issue 63017).
+        if( m_xSelectionSupplier.is() )
+            m_xSelectionSupplier->addSelectionChangeListener( this );
 
         if( m_apModelState.get() && xModel.is())
             m_apModelState->update( xModel );
diff --git a/chart2/source/controller/main/ShapeController.cxx 
b/chart2/source/controller/main/ShapeController.cxx
index e1e4cbd624c3..3dddcbd465c5 100644
--- a/chart2/source/controller/main/ShapeController.cxx
+++ b/chart2/source/controller/main/ShapeController.cxx
@@ -288,7 +288,7 @@ void ShapeController::executeDispatch_FormatArea()
                 pDrawViewWrapper->MergeAttrFromMarked( aAttr, false );
             }
             SvxAbstractDialogFactory* pFact = 
SvxAbstractDialogFactory::Create();
-                ScopedVclPtr< AbstractSvxAreaTabDialog > pDlg(
+            ScopedVclPtr< AbstractSvxAreaTabDialog > pDlg(
                     
pFact->CreateSvxAreaTabDialog(pChartWindow->GetFrameWeld(), &aAttr, 
&pDrawModelWrapper->getSdrModel(), true));
             if ( pDlg->Execute() == RET_OK )
             {
diff --git a/chart2/source/model/main/DataSeriesProperties.cxx 
b/chart2/source/model/main/DataSeriesProperties.cxx
index 375e6c441c2a..c43ced71f40c 100644
--- a/chart2/source/model/main/DataSeriesProperties.cxx
+++ b/chart2/source/model/main/DataSeriesProperties.cxx
@@ -78,7 +78,7 @@ void DataSeriesProperties::AddDefaultsToMap(
     // PROP_DATASERIES_ATTRIBUTED_DATA_POINTS has no default
 
     // add properties of service DataPointProperties
-     DataPointProperties::AddDefaultsToMap( rOutMap );
+    DataPointProperties::AddDefaultsToMap( rOutMap );
 }
 
 }  // namespace chart
diff --git a/chart2/source/model/main/Diagram.cxx 
b/chart2/source/model/main/Diagram.cxx
index 61b531cfc419..5cc2282bcb65 100644
--- a/chart2/source/model/main/Diagram.cxx
+++ b/chart2/source/model/main/Diagram.cxx
@@ -154,26 +154,26 @@ void lcl_AddPropertiesToVector(
                   cppu::UnoType<sal_Int32>::get(),
                   beans::PropertyAttribute::BOUND
                   | beans::PropertyAttribute::MAYBEVOID );
-   rOutProperties.emplace_back( "3DRelativeHeight",
+    rOutProperties.emplace_back( "3DRelativeHeight",
                   PROP_DIAGRAM_3DRELATIVEHEIGHT,
                   cppu::UnoType<sal_Int32>::get(),
                   beans::PropertyAttribute::MAYBEVOID );
-   rOutProperties.emplace_back( "DataTableHBorder",
+    rOutProperties.emplace_back( "DataTableHBorder",
                PROP_DIAGRAM_DATATABLEHBORDER,
                  cppu::UnoType<bool>::get(),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT );
-   rOutProperties.emplace_back( "DataTableVBorder",
+    rOutProperties.emplace_back( "DataTableVBorder",
                PROP_DIAGRAM_DATATABLEVBORDER,
                  cppu::UnoType<bool>::get(),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT );
-   rOutProperties.emplace_back( "DataTableOutline",
+    rOutProperties.emplace_back( "DataTableOutline",
                PROP_DIAGRAM_DATATABLEOUTLINE,
                  cppu::UnoType<bool>::get(),
                  beans::PropertyAttribute::BOUND
                  | beans::PropertyAttribute::MAYBEDEFAULT );
-   rOutProperties.emplace_back( "ExternalData",
+    rOutProperties.emplace_back( "ExternalData",
                   PROP_DIAGRAM_EXTERNALDATA,
                   cppu::UnoType<OUString>::get(),
                   beans::PropertyAttribute::MAYBEVOID );
@@ -201,7 +201,7 @@ private:
         ::chart::PropertyHelper::setPropertyValueDefault( rOutMap, 
PROP_DIAGRAM_DATATABLEOUTLINE, false );
         ::chart::PropertyHelper::setPropertyValueDefault< sal_Int32 >( 
rOutMap, PROP_DIAGRAM_STARTING_ANGLE, 90 );
         ::chart::PropertyHelper::setPropertyValueDefault< sal_Int32 >( 
rOutMap, PROP_DIAGRAM_3DRELATIVEHEIGHT, 100 );
-         ::chart::SceneProperties::AddDefaultsToMap( rOutMap );
+        ::chart::SceneProperties::AddDefaultsToMap( rOutMap );
     }
 };
 
diff --git a/chart2/source/model/main/PageBackground.cxx 
b/chart2/source/model/main/PageBackground.cxx
index a424bf2144f2..27ff536fc1ff 100644
--- a/chart2/source/model/main/PageBackground.cxx
+++ b/chart2/source/model/main/PageBackground.cxx
@@ -76,7 +76,7 @@ private:
     static uno::Sequence< Property > lcl_GetPropertySequence()
     {
         std::vector< css::beans::Property > aProperties;
-         ::chart::LinePropertiesHelper::AddPropertiesToVector( aProperties );
+        ::chart::LinePropertiesHelper::AddPropertiesToVector( aProperties );
         ::chart::FillProperties::AddPropertiesToVector( aProperties );
         ::chart::UserDefinedProperties::AddPropertiesToVector( aProperties );
 
diff --git a/chart2/source/tools/ChartTypeHelper.cxx 
b/chart2/source/tools/ChartTypeHelper.cxx
index b7f3be2f5c5f..78d841755374 100644
--- a/chart2/source/tools/ChartTypeHelper.cxx
+++ b/chart2/source/tools/ChartTypeHelper.cxx
@@ -175,7 +175,7 @@ bool ChartTypeHelper::isSupportingSecondaryAxis( const 
uno::Reference< XChartTyp
     //@todo ask charttype itself --> need model change first
     if(xChartType.is())
     {
-         if(nDimensionCount==3)
+        if(nDimensionCount==3)
             return false;
 
         OUString aChartTypeName = xChartType->getChartType();
@@ -197,7 +197,7 @@ bool 
ChartTypeHelper::isSupportingOverlapAndGapWidthProperties(
     //@todo ask charttype itself --> need model change first
     if(xChartType.is())
     {
-         if(nDimensionCount==3)
+        if(nDimensionCount==3)
             return false;
 
         OUString aChartTypeName = xChartType->getChartType();
diff --git a/chart2/source/tools/DiagramHelper.cxx 
b/chart2/source/tools/DiagramHelper.cxx
index c91caa084bad..07f00bee436e 100644
--- a/chart2/source/tools/DiagramHelper.cxx
+++ b/chart2/source/tools/DiagramHelper.cxx
@@ -923,7 +923,7 @@ static void lcl_generateAutomaticCategoriesFromChartType(
     if(!xChartType.is())
         return;
     OUString aMainSeq( xChartType->getRoleOfSequenceForSeriesLabel() );
-        Reference< XDataSeriesContainer > xSeriesCnt( xChartType, 
uno::UNO_QUERY );
+    Reference< XDataSeriesContainer > xSeriesCnt( xChartType, uno::UNO_QUERY );
     if( xSeriesCnt.is() )
     {
         Sequence< Reference< XDataSeries > > aSeriesSeq( 
xSeriesCnt->getDataSeries() );
diff --git a/chart2/source/tools/LinePropertiesHelper.cxx 
b/chart2/source/tools/LinePropertiesHelper.cxx
index 66bcd3996062..227ec99b6383 100644
--- a/chart2/source/tools/LinePropertiesHelper.cxx
+++ b/chart2/source/tools/LinePropertiesHelper.cxx
@@ -42,7 +42,7 @@ void LinePropertiesHelper::AddPropertiesToVector(
                   beans::PropertyAttribute::BOUND
                   | beans::PropertyAttribute::MAYBEDEFAULT );
 
-     rOutProperties.emplace_back( "LineDash",
+    rOutProperties.emplace_back( "LineDash",
                    PROP_LINE_DASH,
                    cppu::UnoType<drawing::LineDash>::get(),
                    beans::PropertyAttribute::BOUND
diff --git a/chart2/source/tools/PotentialRegressionCurveCalculator.cxx 
b/chart2/source/tools/PotentialRegressionCurveCalculator.cxx
index 6f4f507d039f..16b24b47392b 100644
--- a/chart2/source/tools/PotentialRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/PotentialRegressionCurveCalculator.cxx
@@ -58,15 +58,15 @@ void SAL_CALL 
PotentialRegressionCurveCalculator::recalculateRegression(
         aValues = RegressionCalculationHelper::cleanup(
                     aXValues, aYValues,
                     
RegressionCalculationHelper::isValidAndXPositiveAndYNegative());
-         nMax = aValues.first.size();
-         if( nMax <= 1 )
-         {
+        nMax = aValues.first.size();
+        if( nMax <= 1 )
+        {
             ::rtl::math::setNan( & m_fSlope );
             ::rtl::math::setNan( & m_fIntercept );
             ::rtl::math::setNan( & m_fCorrelationCoeffitient );
             return;
-         }
-         m_fSign = -1.0;
+        }
+        m_fSign = -1.0;
     }
 
     double fAverageX = 0.0, fAverageY = 0.0;
diff --git a/chart2/source/view/main/ShapeFactory.cxx 
b/chart2/source/view/main/ShapeFactory.cxx
index fa2a007672c8..76db6791d2d8 100644
--- a/chart2/source/view/main/ShapeFactory.cxx
+++ b/chart2/source/view/main/ShapeFactory.cxx
@@ -1919,7 +1919,7 @@ uno::Reference< drawing::XShape >
     {
         try
         {
-             uno::Sequence<OUString> aPropertyNames {
+            uno::Sequence<OUString> aPropertyNames {
                 UNO_NAME_3D_POLYPOLYGON3D,
                 UNO_NAME_3D_LINEONLY
             };
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to