diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-26 14:50:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-01-26 21:13:30 +0100 |
commit | d04b4089449c0fdcaea5dcde9e8469a3ed9eedbc (patch) | |
tree | 79cf224b7c8101e2c31c3028ef784b4ec97070fc /sc/inc | |
parent | be766f8464c07623d8a6539c73652680dff23fd6 (diff) |
cid#1472493 silence Unintended sign extension
Change-Id: Ib6bda68c1f6efe5492ca7444044b4c900b81e24e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109965
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/document.hxx | 4 | ||||
-rw-r--r-- | sc/inc/table.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index e7ebb3653138..c49cfa6ccfa5 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1886,7 +1886,7 @@ public: * grid, return the first visible row whose top position is below the * specified height. */ - SCROW GetRowForHeight( SCTAB nTab, sal_uLong nHeight ) const; + SCROW GetRowForHeight( SCTAB nTab, tools::Long nHeight ) const; sal_uLong GetScaledRowHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab, double fScale, const sal_uLong* pnMaxHeight = nullptr ) const; SC_DLLPUBLIC sal_uLong GetColOffset( SCCOL nCol, SCTAB nTab, bool bHiddenAsZero = true ) const; SC_DLLPUBLIC sal_uLong GetRowOffset( SCROW nRow, SCTAB nTab, bool bHiddenAsZero = true ) const; @@ -1910,7 +1910,7 @@ public: void UpdateAllRowHeights( sc::RowHeightContext& rCxt, const ScMarkData* pTabMark ); - tools::Long GetNeededSize( SCCOL nCol, SCROW nRow, SCTAB nTab, + tools::Long GetNeededSize( SCCOL nCol, SCROW nRow, SCTAB nTab, OutputDevice* pDev, double nPPTX, double nPPTY, const Fraction& rZoomX, const Fraction& rZoomY, diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 1962290cb862..9dbca1bb1ae7 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -826,7 +826,7 @@ public: * * @return SCROW last row of the range within specified height. */ - SCROW GetRowForHeight(sal_uLong nHeight) const; + SCROW GetRowForHeight(tools::Long nHeight) const; sal_uInt16 GetOriginalWidth( SCCOL nCol ) const; sal_uInt16 GetOriginalHeight( SCROW nRow ) const; |