diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-10-31 17:51:34 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2016-11-01 00:54:03 +0000 |
commit | 9fa6dadc4e1e75b2fd7b7360995c524fa7a5d40e (patch) | |
tree | d0c597087c12b5e58424755cf7c5164c2c185b38 /sc | |
parent | 3950166877bf1308f9e449992e20b558342af825 (diff) |
Omit the default comparator for std::sort()
Change-Id: Ib865bdf911b53d809fc2979f524da3735bb39ce5
Reviewed-on: https://gerrit.libreoffice.org/30432
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/dpoutput.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx index 390aaf67592d..ff6c2daa7f9a 100644 --- a/sc/source/core/data/dpoutput.cxx +++ b/sc/source/core/data/dpoutput.cxx @@ -107,9 +107,6 @@ struct ScDPOutLevelData namespace { -bool lcl_compareColfuc ( SCCOL i, SCCOL j) { return (i<j); } -bool lcl_compareRowfuc ( SCROW i, SCROW j) { return (i<j); } - class ScDPOutputImpl { ScDocument* mpDoc; @@ -154,8 +151,8 @@ void ScDPOutputImpl::OutputDataArea() bool bAllRows = ( ( mnTabEndRow - mnDataStartRow + 2 ) == (SCROW) mnRows.size() ); - std::sort( mnCols.begin(), mnCols.end(), lcl_compareColfuc ); - std::sort( mnRows.begin(), mnRows.end(), lcl_compareRowfuc ); + std::sort( mnCols.begin(), mnCols.end() ); + std::sort( mnRows.begin(), mnRows.end() ); for( SCCOL nCol = 0; nCol < (SCCOL)mnCols.size()-1; nCol ++ ) { |