diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:12:24 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-19 01:36:55 +0100 |
commit | 6ceb1d0f2e23749fe03fab08ec338ba4d7782173 (patch) | |
tree | 44e69c2fdf12594169ca3a052224368faa967185 /sc/inc/cellvalues.hxx | |
parent | 695280feb90729fde1a7ecf1c409ae16f8281a46 (diff) |
tdf#123936 Formatting files in module sc with clang-format
Change-Id: I66cafda863e3e1e4559a57289c09925d68b0719c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105701
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/inc/cellvalues.hxx')
-rw-r--r-- | sc/inc/cellvalues.hxx | 53 |
1 files changed, 25 insertions, 28 deletions
diff --git a/sc/inc/cellvalues.hxx b/sc/inc/cellvalues.hxx index 5a405779328f..ff9088b211f2 100644 --- a/sc/inc/cellvalues.hxx +++ b/sc/inc/cellvalues.hxx @@ -17,14 +17,13 @@ class ScColumn; class ScFormulaCell; -namespace svl { - +namespace svl +{ class SharedString; - } -namespace sc { - +namespace sc +{ struct CellValuesImpl; struct CellValueSpan @@ -32,7 +31,7 @@ struct CellValueSpan SCROW mnRow1; SCROW mnRow2; - CellValueSpan( SCROW nRow1, SCROW nRow2 ); + CellValueSpan(SCROW nRow1, SCROW nRow2); }; /** @@ -43,8 +42,8 @@ class CellValues { std::unique_ptr<CellValuesImpl> mpImpl; - CellValues( const CellValues& ) = delete; - CellValues& operator= ( const CellValues& ) = delete; + CellValues(const CellValues&) = delete; + CellValues& operator=(const CellValues&) = delete; public: CellValues(); @@ -58,27 +57,27 @@ public: * @param nRow top row position in the source column. * @param nLen length of the segment to transfer. */ - void transferFrom( ScColumn& rCol, SCROW nRow, size_t nLen ); + void transferFrom(ScColumn& rCol, SCROW nRow, size_t nLen); - void copyTo( ScColumn& rCol, SCROW nRow ) const; - void swapNonEmpty( ScColumn& rCol ); + void copyTo(ScColumn& rCol, SCROW nRow) const; + void swapNonEmpty(ScColumn& rCol); - void assign( const std::vector<double>& rVals ); - void assign( const std::vector<ScFormulaCell*>& rVals ); + void assign(const std::vector<double>& rVals); + void assign(const std::vector<ScFormulaCell*>& rVals); size_t size() const; - void reset( size_t nSize ); - void setValue( size_t nRow, double fVal ); - void setValue( size_t nRow, const svl::SharedString& rStr ); + void reset(size_t nSize); + void setValue(size_t nRow, double fVal); + void setValue(size_t nRow, const svl::SharedString& rStr); - void swap( CellValues& r ); + void swap(CellValues& r); std::vector<CellValueSpan> getNonEmptySpans() const; private: - void copyCellsTo( ScColumn& rCol, SCROW nRow ) const; - void copyCellTextAttrsTo( ScColumn& rCol, SCROW nRow ) const; + void copyCellsTo(ScColumn& rCol, SCROW nRow) const; + void copyCellTextAttrsTo(ScColumn& rCol, SCROW nRow) const; }; /** @@ -90,13 +89,12 @@ class TableValues std::unique_ptr<Impl> mpImpl; - TableValues( const TableValues& ) = delete; - TableValues& operator= ( const TableValues& ) = delete; + TableValues(const TableValues&) = delete; + TableValues& operator=(const TableValues&) = delete; public: - TableValues(); - TableValues( const ScRange& rRange ); + TableValues(const ScRange& rRange); ~TableValues(); const ScRange& getRange() const; @@ -104,18 +102,17 @@ public: /** * Swap the entire column. */ - void swap( SCTAB nTab, SCCOL nCol, CellValues& rColValue ); + void swap(SCTAB nTab, SCCOL nCol, CellValues& rColValue); /** * Swap non-empty blocks with the column storage. */ - void swapNonEmpty( SCTAB nTab, SCCOL nCol, ScColumn& rCol ); + void swapNonEmpty(SCTAB nTab, SCCOL nCol, ScColumn& rCol); - std::vector<CellValueSpan> getNonEmptySpans( SCTAB nTab, SCCOL nCol ) const; + std::vector<CellValueSpan> getNonEmptySpans(SCTAB nTab, SCCOL nCol) const; - void swap( TableValues& rOther ); + void swap(TableValues& rOther); }; - } #endif |