diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-08-12 00:30:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-17 07:43:01 +0200 |
commit | 7315f325ff7ada3d6bd85a471058fdaeaff8cdb0 (patch) | |
tree | ef1505a58c8684a5430999e4f53a8a7d6b9f19ae /chart2 | |
parent | 83288332f7ced698610739419989c464256f1c4d (diff) |
use more default copy ctors
if ctor should be private or protected explicitly default them.
boost::optional has copy ctors, so use them.
Change-Id: If1855626b297e739afef0dc5ad57958f7ad199bc
Reviewed-on: https://gerrit.libreoffice.org/42363
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
4 files changed, 0 insertions, 40 deletions
diff --git a/chart2/source/view/axes/VAxisProperties.cxx b/chart2/source/view/axes/VAxisProperties.cxx index 43ef2d33ea12..c3cdbcde5f97 100644 --- a/chart2/source/view/axes/VAxisProperties.cxx +++ b/chart2/source/view/axes/VAxisProperties.cxx @@ -177,36 +177,6 @@ AxisProperties::AxisProperties( const uno::Reference< XAxis >& xAxisModel { } -AxisProperties::AxisProperties( const AxisProperties& rAxisProperties ) - : m_xAxisModel( rAxisProperties.m_xAxisModel ) - , m_nDimensionIndex( rAxisProperties.m_nDimensionIndex ) - , m_bIsMainAxis( rAxisProperties.m_bIsMainAxis ) - , m_bSwapXAndY( rAxisProperties.m_bSwapXAndY ) - , m_eCrossoverType( rAxisProperties.m_eCrossoverType ) - , m_eLabelPos( rAxisProperties.m_eLabelPos ) - , m_eTickmarkPos( rAxisProperties.m_eTickmarkPos ) - , m_bCrossingAxisHasReverseDirection( rAxisProperties.m_bCrossingAxisHasReverseDirection ) - , m_bCrossingAxisIsCategoryAxes( rAxisProperties.m_bCrossingAxisIsCategoryAxes ) - , maLabelAlignment( rAxisProperties.maLabelAlignment ) - , m_bDisplayLabels( rAxisProperties.m_bDisplayLabels ) - , m_bTryStaggeringFirst( rAxisProperties.m_bTryStaggeringFirst ) - , m_nNumberFormatKey( rAxisProperties.m_nNumberFormatKey ) - , m_nMajorTickmarks( rAxisProperties.m_nMajorTickmarks ) - , m_nMinorTickmarks( rAxisProperties.m_nMinorTickmarks ) - , m_aTickmarkPropertiesList( rAxisProperties.m_aTickmarkPropertiesList ) - , m_aLineProperties( rAxisProperties.m_aLineProperties ) - //for category axes - , m_nAxisType( rAxisProperties.m_nAxisType ) - , m_bComplexCategories( rAxisProperties.m_bComplexCategories ) - , m_pExplicitCategoriesProvider( rAxisProperties.m_pExplicitCategoriesProvider ) - , m_xAxisTextProvider( rAxisProperties.m_xAxisTextProvider ) -{ - if( rAxisProperties.m_pfMainLinePositionAtOtherAxis ) - m_pfMainLinePositionAtOtherAxis.reset(*rAxisProperties.m_pfMainLinePositionAtOtherAxis); - if( rAxisProperties.m_pfExrtaLinePositionAtOtherAxis ) - m_pfExrtaLinePositionAtOtherAxis.reset(*rAxisProperties.m_pfExrtaLinePositionAtOtherAxis); -} - LabelAlignment lcl_getLabelAlignmentForZAxis( const AxisProperties& rAxisProperties ) { LabelAlignment aRet( LABEL_ALIGN_RIGHT ); diff --git a/chart2/source/view/axes/VAxisProperties.hxx b/chart2/source/view/axes/VAxisProperties.hxx index 8948a91fe073..29414cda6bc7 100644 --- a/chart2/source/view/axes/VAxisProperties.hxx +++ b/chart2/source/view/axes/VAxisProperties.hxx @@ -141,7 +141,6 @@ struct AxisProperties final AxisProperties( const css::uno::Reference< css::chart2::XAxis >& xAxisModel , ExplicitCategoriesProvider* pExplicitCategoriesProvider ); - AxisProperties( const AxisProperties& rAxisProperties ); void init(bool bCartesian=false);//init from model data (m_xAxisModel) diff --git a/chart2/source/view/charttypes/CategoryPositionHelper.cxx b/chart2/source/view/charttypes/CategoryPositionHelper.cxx index 1e6ef85b81ef..d7412d3cbe85 100644 --- a/chart2/source/view/charttypes/CategoryPositionHelper.cxx +++ b/chart2/source/view/charttypes/CategoryPositionHelper.cxx @@ -30,14 +30,6 @@ CategoryPositionHelper::CategoryPositionHelper( double fSeriesCount, double fCat { } -CategoryPositionHelper::CategoryPositionHelper( const CategoryPositionHelper& rSource ) - : m_fSeriesCount( rSource.m_fSeriesCount ) - , m_fCategoryWidth( rSource.m_fCategoryWidth ) - , m_fInnerDistance( rSource.m_fInnerDistance ) - , m_fOuterDistance( rSource.m_fOuterDistance ) -{ -} - CategoryPositionHelper::~CategoryPositionHelper() { } diff --git a/chart2/source/view/charttypes/CategoryPositionHelper.hxx b/chart2/source/view/charttypes/CategoryPositionHelper.hxx index 63a77b8e68b5..6b7491b47285 100644 --- a/chart2/source/view/charttypes/CategoryPositionHelper.hxx +++ b/chart2/source/view/charttypes/CategoryPositionHelper.hxx @@ -27,7 +27,6 @@ class CategoryPositionHelper { public: CategoryPositionHelper( double fSeriesCount, double CategoryWidth = 1.0); - CategoryPositionHelper( const CategoryPositionHelper& rSource ); virtual ~CategoryPositionHelper(); double getScaledSlotWidth() const; |