diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-06-11 15:00:37 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-12 07:21:29 +0000 |
commit | 2ed5fa14f0e7624db241fde26e10fdd1009adfc7 (patch) | |
tree | 0cc590a368f26289bacfffdb7d8e0a910d121e17 /sc | |
parent | aa3d649e5f4200551ec23edbc3d51734e5d94c47 (diff) |
remove some unnecessary casting
Change-Id: I451df09db58256fed68ce8537b2d8eb4b6ab6942
Reviewed-on: https://gerrit.libreoffice.org/26184
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-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/xml/sheetdata.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 2fcce0776df6..8e22b96cacdd 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -6499,12 +6499,12 @@ ScAddress ScDocument::GetNotePosition( size_t nIndex ) const return ScAddress(nCol, nRow, nTab); OSL_FAIL("note not found"); - return ScAddress(ScAddress::INITIALIZE_INVALID); + return ScAddress::INITIALIZE_INVALID; } } OSL_FAIL("note not found"); - return ScAddress(ScAddress::INITIALIZE_INVALID); + return ScAddress::INITIALIZE_INVALID; } ScAddress ScDocument::GetNotePosition( size_t nIndex, SCTAB nTab ) const @@ -6526,11 +6526,11 @@ ScAddress ScDocument::GetNotePosition( size_t nIndex, SCTAB nTab ) const return ScAddress(nCol, nRow, nTab); OSL_FAIL("note not found"); - return ScAddress(ScAddress::INITIALIZE_INVALID); + return ScAddress::INITIALIZE_INVALID; } OSL_FAIL("note not found"); - return ScAddress(ScAddress::INITIALIZE_INVALID); + return ScAddress::INITIALIZE_INVALID; } SCROW ScDocument::GetNotePosition( SCTAB nTab, SCCOL nCol, size_t nIndex ) const diff --git a/sc/source/filter/xml/sheetdata.cxx b/sc/source/filter/xml/sheetdata.cxx index e5e771dc09a1..1d1cfb93487d 100644 --- a/sc/source/filter/xml/sheetdata.cxx +++ b/sc/source/filter/xml/sheetdata.cxx @@ -28,7 +28,7 @@ ScSheetSaveData::ScSheetSaveData() : mnStartTab( -1 ), mnStartOffset( -1 ), - maPreviousNote( OUString(), OUString(), ScAddress(ScAddress::INITIALIZE_INVALID) ), + maPreviousNote( OUString(), OUString(), ScAddress::INITIALIZE_INVALID ), mbInSupportedSave( false ) { } |