summaryrefslogtreecommitdiff
path: root/sw/source/ui/index/cnttab.cxx
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 /sw/source/ui/index/cnttab.cxx
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 'sw/source/ui/index/cnttab.cxx')
-rw-r--r--sw/source/ui/index/cnttab.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 55235e71437d..a4d005fb9a64 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -152,7 +152,7 @@ protected:
virtual ::svt::CellController* GetController(tools::Long nRow, sal_uInt16 nCol) override;
virtual bool SaveModified() override;
- std::vector<long> GetOptimalColWidths() const;
+ std::vector<tools::Long> GetOptimalColWidths() const;
public:
SwEntryBrowseBox(const css::uno::Reference<css::awt::XWindow> &rParent);
@@ -3622,7 +3622,7 @@ void SwEntryBrowseBox::Resize()
SwEntryBrowseBox_Base::Resize();
tools::Long nWidth = GetSizePixel().Width();
- std::vector<long> aWidths = GetOptimalColWidths();
+ std::vector<tools::Long> aWidths = GetOptimalColWidths();
tools::Long nNaturalWidth(std::accumulate(aWidths.begin(), aWidths.end(), 0));
tools::Long nExcess = ((nWidth - nNaturalWidth) / aWidths.size()) - 1;
@@ -3630,9 +3630,9 @@ void SwEntryBrowseBox::Resize()
SetColumnWidth(i+1, aWidths[i] + nExcess);
}
-std::vector<long> SwEntryBrowseBox::GetOptimalColWidths() const
+std::vector<tools::Long> SwEntryBrowseBox::GetOptimalColWidths() const
{
- std::vector<long> aWidths;
+ std::vector<tools::Long> aWidths;
tools::Long nStandardColMinWidth = approximate_digit_width() * 15;
tools::Long nYesNoWidth = approximate_digit_width() * 5;
@@ -3661,7 +3661,7 @@ Size SwEntryBrowseBox::GetOptimalSize() const
{
Size aSize = LogicToPixel(Size(276 , 175), MapMode(MapUnit::MapAppFont));
- std::vector<long> aWidths = GetOptimalColWidths();
+ std::vector<tools::Long> aWidths = GetOptimalColWidths();
tools::Long nWidth(std::accumulate(aWidths.begin(), aWidths.end(), 0));