summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-16 16:27:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-17 11:25:21 +0200
commit2e8acde112e1c6754df26902e79a78346ba45a2d (patch)
tree2d836747a7aafdd0b64ab9aabf01be59e94745d4 /sc/source
parent006a7b50546c57e260245d4630de565705f2fc38 (diff)
remove UL/L suffixes from integer constants on the RHS of expressions
Change-Id: I899a8126c9d971601fea6c77eca165718aea0ac5 Reviewed-on: https://gerrit.libreoffice.org/41237 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/document.cxx4
-rw-r--r--sc/source/filter/excel/xltools.cxx2
-rw-r--r--sc/source/filter/lotus/lotread.cxx4
-rw-r--r--sc/source/ui/Accessibility/AccessibleCsvControl.cxx2
-rw-r--r--sc/source/ui/cctrl/dpcontrol.cxx2
-rw-r--r--sc/source/ui/dbgui/csvcontrol.cxx4
-rw-r--r--sc/source/ui/dbgui/csvgrid.cxx2
-rw-r--r--sc/source/ui/dbgui/csvruler.cxx2
-rw-r--r--sc/source/ui/drawfunc/fuconrec.cxx2
-rw-r--r--sc/source/ui/view/gridwin4.cxx2
10 files changed, 13 insertions, 13 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index fcd05c554135..f7f29794aed5 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -6042,7 +6042,7 @@ void ScDocument::StylesToNames()
sal_uLong ScDocument::GetCellCount() const
{
- sal_uLong nCellCount = 0L;
+ sal_uLong nCellCount = 0;
TableContainer::const_iterator it = maTabs.begin();
for (; it != maTabs.end(); ++it)
@@ -6054,7 +6054,7 @@ sal_uLong ScDocument::GetCellCount() const
sal_uLong ScDocument::GetFormulaGroupCount() const
{
- sal_uLong nFormulaGroupCount = 0L;
+ sal_uLong nFormulaGroupCount = 0;
ScFormulaGroupIterator aIter( const_cast<ScDocument*>(this) );
for ( sc::FormulaGroupEntry* ptr = aIter.first(); ptr; ptr = aIter.next())
diff --git a/sc/source/filter/excel/xltools.cxx b/sc/source/filter/excel/xltools.cxx
index 176e1da6162c..ff0d03c0fe84 100644
--- a/sc/source/filter/excel/xltools.cxx
+++ b/sc/source/filter/excel/xltools.cxx
@@ -316,7 +316,7 @@ sal_uInt16 XclTools::GetXclColumnWidth( sal_uInt16 nScWidth, long nScCharWidth )
double XclTools::GetXclDefColWidthCorrection( long nXclDefFontHeight )
{
- return 40960.0 / ::std::max( nXclDefFontHeight - 15L, 60L ) + 50.0;
+ return 40960.0 / ::std::max( nXclDefFontHeight - 15, 60L ) + 50.0;
}
// formatting
diff --git a/sc/source/filter/lotus/lotread.cxx b/sc/source/filter/lotus/lotread.cxx
index 0a3da04e1218..a029a9ed43b8 100644
--- a/sc/source/filter/lotus/lotread.cxx
+++ b/sc/source/filter/lotus/lotread.cxx
@@ -43,7 +43,7 @@ ErrCode ImportLotus::Read()
sal_uInt16 nOp;
sal_uInt16 nSubType;
sal_uInt16 nRecLen;
- sal_uInt32 nNextRec = 0UL;
+ sal_uInt32 nNextRec = 0;
ErrCode eRet = ERRCODE_NONE;
// ScFormulaCell *pLastFormCell;
@@ -230,7 +230,7 @@ ErrCode ImportLotus::Read(SvStream& rIn)
bool bRead = true;
sal_uInt16 nOp;
sal_uInt16 nRecLen;
- sal_uInt32 nNextRec = 0UL;
+ sal_uInt32 nNextRec = 0;
ErrCode eRet = ERRCODE_NONE;
nTab = 0;
diff --git a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
index 91f6f29ae956..55a82e67e49d 100644
--- a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
+++ b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
@@ -292,7 +292,7 @@ static sal_Int32 lcl_GetRulerPos( sal_Int32 nApiPos )
nApiLimit = lcl_GetApiPos( nExp );
}
sal_Int32 nRelPos = nApiPos - nApiBase;
- return nRulerPos + nRelPos / nDiv * 10 + ::std::max( nRelPos % nDiv - nDiv + 10L, 0L );
+ return nRulerPos + nRelPos / nDiv * 10 + ::std::max<sal_Int32>( nRelPos % nDiv - nDiv + 10, 0 );
}
/** Expands the sequence's size and returns the base index of the new inserted elements. */
diff --git a/sc/source/ui/cctrl/dpcontrol.cxx b/sc/source/ui/cctrl/dpcontrol.cxx
index 55e8785e514c..0a16734757f5 100644
--- a/sc/source/ui/cctrl/dpcontrol.cxx
+++ b/sc/source/ui/cctrl/dpcontrol.cxx
@@ -147,7 +147,7 @@ void ScDPFieldButton::getPopupBoundingBox(Point& rPos, Size& rSize) const
{
float fScaleFactor = mpOutDev->GetDPIScaleFactor();
- long nMaxSize = 18L * fScaleFactor; // Button max size in either dimension
+ long nMaxSize = 18 * fScaleFactor; // Button max size in either dimension
long nW = std::min(maSize.getWidth() / 2, nMaxSize);
long nH = std::min(maSize.getHeight(), nMaxSize);
diff --git a/sc/source/ui/dbgui/csvcontrol.cxx b/sc/source/ui/dbgui/csvcontrol.cxx
index 4d0fa54d66c7..40aee4e35444 100644
--- a/sc/source/ui/dbgui/csvcontrol.cxx
+++ b/sc/source/ui/dbgui/csvcontrol.cxx
@@ -181,7 +181,7 @@ sal_Int32 ScCsvControl::GetVisPosCount() const
sal_Int32 ScCsvControl::GetMaxPosOffset() const
{
- return std::max( GetPosCount() - GetVisPosCount() + 2L, 0L );
+ return std::max<sal_Int32>( GetPosCount() - GetVisPosCount() + 2, 0 );
}
bool ScCsvControl::IsValidSplitPos( sal_Int32 nPos ) const
@@ -231,7 +231,7 @@ sal_Int32 ScCsvControl::GetLastVisLine() const
sal_Int32 ScCsvControl::GetMaxLineOffset() const
{
- return std::max( GetLineCount() - GetVisLineCount() + 1L, 0L );
+ return std::max<sal_Int32>( GetLineCount() - GetVisLineCount() + 1, 0 );
}
bool ScCsvControl::IsValidLine( sal_Int32 nLine ) const
diff --git a/sc/source/ui/dbgui/csvgrid.cxx b/sc/source/ui/dbgui/csvgrid.cxx
index 1a13fe7fd3b2..3d68c95bdb99 100644
--- a/sc/source/ui/dbgui/csvgrid.cxx
+++ b/sc/source/ui/dbgui/csvgrid.cxx
@@ -196,7 +196,7 @@ sal_Int32 ScCsvGrid::GetNoScrollCol( sal_Int32 nPos ) const
sal_Int32 nScroll = (GetFirstVisPos() > 0) ? CSV_SCROLL_DIST : 0;
nNewPos = GetFirstVisPos() + nScroll;
}
- else if( nNewPos > GetLastVisPos() - CSV_SCROLL_DIST - 1L )
+ else if( nNewPos > GetLastVisPos() - CSV_SCROLL_DIST - 1 )
{
sal_Int32 nScroll = (GetFirstVisPos() < GetMaxPosOffset()) ? CSV_SCROLL_DIST : 0;
nNewPos = GetLastVisPos() - nScroll - 1;
diff --git a/sc/source/ui/dbgui/csvruler.cxx b/sc/source/ui/dbgui/csvruler.cxx
index 2ddcb309b920..be4b48ba9763 100644
--- a/sc/source/ui/dbgui/csvruler.cxx
+++ b/sc/source/ui/dbgui/csvruler.cxx
@@ -256,7 +256,7 @@ sal_Int32 ScCsvRuler::GetNoScrollPos( sal_Int32 nPos ) const
sal_Int32 nScroll = (GetFirstVisPos() > 0) ? CSV_SCROLL_DIST : 0;
nNewPos = std::max( nPos, GetFirstVisPos() + nScroll );
}
- else if( nNewPos > GetLastVisPos() - CSV_SCROLL_DIST - 1L )
+ else if( nNewPos > GetLastVisPos() - CSV_SCROLL_DIST - 1 )
{
sal_Int32 nScroll = (GetFirstVisPos() < GetMaxPosOffset()) ? CSV_SCROLL_DIST : 0;
nNewPos = std::min( nNewPos, GetLastVisPos() - nScroll - sal_Int32( 1 ) );
diff --git a/sc/source/ui/drawfunc/fuconrec.cxx b/sc/source/ui/drawfunc/fuconrec.cxx
index 9646401a3dc9..dce2e752d041 100644
--- a/sc/source/ui/drawfunc/fuconrec.cxx
+++ b/sc/source/ui/drawfunc/fuconrec.cxx
@@ -68,7 +68,7 @@ namespace {
OUString aArrowName( SvxResId(pResId) );
long nCount = pLineEndList->Count();
long nIndex;
- for( nIndex = 0L; nIndex < nCount; nIndex++ )
+ for( nIndex = 0; nIndex < nCount; nIndex++ )
{
const XLineEndEntry* pEntry = pLineEndList->GetLineEnd(nIndex);
if( pEntry->GetName() == aArrowName )
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index a0ea195f3e14..b7f319135f88 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -608,7 +608,7 @@ void ScGridWindow::DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableI
{
if(bLayoutRTL)
{
- aDrawingRectPixel.Left() = 0L;
+ aDrawingRectPixel.Left() = 0;
}
else
{