diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2014-05-26 19:41:16 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-05-27 01:19:00 -0500 |
commit | 3b24dcc8a8138c1e1495c3dba5ffe5748cb183c2 (patch) | |
tree | 8250ea36b767d906cc6606ab81d198ffda2e8ee1 /sc | |
parent | a1dedadbf0d87a1db24e9b336257678e059882f0 (diff) |
Remove unnecessary semicolons
A simplified version of the semantic match that finds this problem is
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@r1@
statement S;
position p,p1;
@@
S@p1;@p
@script:python r2@
p << r1.p;
p1 << r1.p1;
@@
if p[0].line != p1[0].line_end:
cocci.include_match(False)
@@
position r1.p;
@@
-;@p
// </smpl>
Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e
Reviewed-on: https://gerrit.libreoffice.org/9493
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/document.cxx | 8 | ||||
-rw-r--r-- | sc/source/filter/dif/difimp.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/excel/read.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/oox/condformatbuffer.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/externalrefmgr.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 4 |
6 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 97c10cae4cf7..32b6ba4fc312 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -4207,7 +4207,7 @@ void ScDocument::SetColHidden(SCCOL nStartCol, SCCOL nEndCol, SCTAB nTab, bool b SCROW ScDocument::FirstVisibleRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const { if (!ValidTab(nTab) || nTab >= static_cast<SCTAB>(maTabs.size()) || !maTabs[nTab]) - return ::std::numeric_limits<SCROW>::max();; + return ::std::numeric_limits<SCROW>::max(); return maTabs[nTab]->FirstVisibleRow(nStartRow, nEndRow); } @@ -4215,7 +4215,7 @@ SCROW ScDocument::FirstVisibleRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) co SCROW ScDocument::LastVisibleRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const { if (!ValidTab(nTab) || nTab >= static_cast<SCTAB>(maTabs.size()) || !maTabs[nTab]) - return ::std::numeric_limits<SCROW>::max();; + return ::std::numeric_limits<SCROW>::max(); return maTabs[nTab]->LastVisibleRow(nStartRow, nEndRow); } @@ -4264,7 +4264,7 @@ void ScDocument::SetRowFiltered(SCROW nStartRow, SCROW nEndRow, SCTAB nTab, bool SCROW ScDocument::FirstNonFilteredRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const { if (!ValidTab(nTab) || nTab >= static_cast<SCTAB>(maTabs.size()) || !maTabs[nTab]) - return ::std::numeric_limits<SCROW>::max();; + return ::std::numeric_limits<SCROW>::max(); return maTabs[nTab]->FirstNonFilteredRow(nStartRow, nEndRow); } @@ -4272,7 +4272,7 @@ SCROW ScDocument::FirstNonFilteredRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab SCROW ScDocument::LastNonFilteredRow(SCROW nStartRow, SCROW nEndRow, SCTAB nTab) const { if (!ValidTab(nTab) || nTab >= static_cast<SCTAB>(maTabs.size()) || !maTabs[nTab]) - return ::std::numeric_limits<SCROW>::max();; + return ::std::numeric_limits<SCROW>::max(); return maTabs[nTab]->LastNonFilteredRow(nStartRow, nEndRow); } diff --git a/sc/source/filter/dif/difimp.cxx b/sc/source/filter/dif/difimp.cxx index 1ec7e809ed13..8039d5dbd88a 100644 --- a/sc/source/filter/dif/difimp.cxx +++ b/sc/source/filter/dif/difimp.cxx @@ -590,7 +590,7 @@ DATASET DifParser::GetNextDataset( void ) } } } - }; + } } } } diff --git a/sc/source/filter/excel/read.cxx b/sc/source/filter/excel/read.cxx index 5c6e6f261004..7c4d7bd09d3b 100644 --- a/sc/source/filter/excel/read.cxx +++ b/sc/source/filter/excel/read.cxx @@ -124,7 +124,7 @@ FltError ImportExcel::Read( void ) Eof(); break; default:; - }; + } eAkt = Z_Ende; break; } diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx index ca871857c53e..3c3b45eec2f2 100644 --- a/sc/source/filter/oox/condformatbuffer.cxx +++ b/sc/source/filter/oox/condformatbuffer.cxx @@ -1164,7 +1164,7 @@ void ExtCfRule::finalizeImport() case UNKNOWN: // nothing to do default: break; - }; + } } void ExtCfRule::importDataBar( const AttributeList& rAttribs ) diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index 9c89c0054765..cce3e2fba694 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -2340,7 +2340,7 @@ SfxObjectShellRef ScExternalRefManager::loadSrcDocument(sal_uInt16 nFileId, OUSt if ( !pFileData->maFilterName.isEmpty() ) rFilter = pFileData->maFilterName; // don't overwrite stored filter with guessed filter else - ScDocumentLoader::GetFilterName(aFile, rFilter, aOptions, true, false);; + ScDocumentLoader::GetFilterName(aFile, rFilter, aOptions, true, false); ScDocumentLoader::GetFilterName(aFile, rFilter, aOptions, true, false); const SfxFilter* pFilter = ScDocShell::Factory().GetFilterContainer()->GetFilter4FilterName(rFilter); diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index e52ca43e2747..9af01d0de30c 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -2839,7 +2839,7 @@ getPasteFlags (sal_Int32 Paste) case excel::XlPasteType::xlPasteAllExceptBorders: default: nFlags = IDF_ALL;break; - }; + } return nFlags; } @@ -2861,7 +2861,7 @@ getPasteFormulaBits( sal_Int32 Operation) case excel::XlPasteSpecialOperation::xlPasteSpecialOperationNone: default: nFormulaBits = PASTE_NOFUNC; break; - }; + } return nFormulaBits; } |