summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-26 14:17:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-28 07:21:59 +0100
commit6436302f40252bc6619e304e2051115fee902e20 (patch)
treea32659b4fecc9fbf8fad3e379ddd8645a2a52e0b /starmath
parent35f16614ee7ddf518d4c01de6b1d800f5ff1ba7e (diff)
convert some more long -> tools::Long
grepping for stuff in template params this time Change-Id: Ia37bfd85480b3a72c3c465489581d56ad8dde851 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104855 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/dialog.cxx4
-rw-r--r--starmath/source/edit.cxx2
-rw-r--r--starmath/source/node.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index cf9616ad9980..87bf6a6c41be 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -1088,8 +1088,8 @@ void SmShowSymbolSet::calccols(const vcl::RenderContext& rRenderContext)
nColumns = aOutputSize.Width() / nLen;
nRows = aOutputSize.Height() / nLen;
- nColumns = std::max<long>(1, nColumns);
- nRows = std::max<long>(1, nRows);
+ nColumns = std::max<tools::Long>(1, nColumns);
+ nRows = std::max<tools::Long>(1, nRows);
nXOffset = (aOutputSize.Width() - (nColumns * nLen)) / 2;
nYOffset = (aOutputSize.Height() - (nRows * nLen)) / 2;
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 59cef03975bf..c8f82355468e 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -283,7 +283,7 @@ void SmEditWindow::Resize()
if (pEditView->GetVisArea().Top() > nMaxVisAreaStart)
{
tools::Rectangle aVisArea(pEditView->GetVisArea() );
- aVisArea.SetTop( std::max<long>(nMaxVisAreaStart, 0) );
+ aVisArea.SetTop( std::max<tools::Long>(nMaxVisAreaStart, 0) );
aVisArea.SetSize(pEditView->GetOutputArea().GetSize());
pEditView->SetVisArea(aVisArea);
pEditView->ShowCursor();
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 1604655c08c1..e252b83ee308 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -1921,7 +1921,7 @@ void SmMatrixNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat)
// initialize array that is to hold the maximum widths of all
// elements (subnodes) in that column.
- std::vector<long> aColWidth(mnNumCols);
+ std::vector<tools::Long> aColWidth(mnNumCols);
// arrange subnodes and calculate the above arrays contents
size_t nNodes = GetNumSubNodes();
@@ -1945,7 +1945,7 @@ void SmMatrixNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat)
nVerDist = nNormDist * rFormat.GetDistance(DIS_MATRIXROW) / 100;
// build array that holds the leftmost position for each column
- std::vector<long> aColLeft(mnNumCols);
+ std::vector<tools::Long> aColLeft(mnNumCols);
tools::Long nX = 0;
for (size_t j = 0; j < mnNumCols; ++j)
{