diff options
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/oox/stylesbuffer.cxx | 9 | ||||
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/docfunc.hxx | 2 |
3 files changed, 5 insertions, 8 deletions
diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx index 2310f324e27a..f31cde38bcff 100644 --- a/sc/source/filter/oox/stylesbuffer.cxx +++ b/sc/source/filter/oox/stylesbuffer.cxx @@ -1510,12 +1510,9 @@ void Border::importDxfBorder( sal_Int32 nElement, SequenceInputStream& rStrm ) void Border::finalizeImport( bool bRTL ) { - if ( bRTL ) - { - BorderLineModel aTmp = maModel.maLeft; - maModel.maLeft = maModel.maRight; - maModel.maRight = aTmp; - } + if (bRTL) + std::swap(maModel.maLeft, maModel.maRight); + maApiData.mbBorderUsed = maModel.maLeft.mbUsed || maModel.maRight.mbUsed || maModel.maTop.mbUsed || maModel.maBottom.mbUsed; maApiData.mbDiagUsed = maModel.maDiagonal.mbUsed; diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index 1a8d902bea19..50dc53ec546f 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -5773,7 +5773,7 @@ void ScDocFunc::EndListAction() } bool ScDocFunc::InsertSparklines(ScRange const& rDataRange, ScRange const& rSparklineRange, - std::shared_ptr<sc::SparklineGroup> pSparklineGroup) + const std::shared_ptr<sc::SparklineGroup>& pSparklineGroup) { std::vector<sc::SparklineData> aSparklineDataVector; diff --git a/sc/source/ui/inc/docfunc.hxx b/sc/source/ui/inc/docfunc.hxx index aa9755566ef3..e1f0bb9eaa34 100644 --- a/sc/source/ui/inc/docfunc.hxx +++ b/sc/source/ui/inc/docfunc.hxx @@ -245,7 +245,7 @@ public: void ConvertFormulaToValue( const ScRange& rRange, bool bInteraction ); SC_DLLPUBLIC bool InsertSparklines(ScRange const& rDataRange, ScRange const& rSparklineRange, - std::shared_ptr<sc::SparklineGroup> pSparklineGroup); + const std::shared_ptr<sc::SparklineGroup>& pSparklineGroup); SC_DLLPUBLIC bool DeleteSparkline(ScAddress const& rAddress); SC_DLLPUBLIC bool DeleteSparklineGroup(std::shared_ptr<sc::SparklineGroup> const& pSparklineGroup, SCTAB nTab); |