[Libreoffice-commits] core.git: sc/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 11 16:14:41 UTC 2020
sc/source/ui/navipi/navipi.cxx | 2 --
1 file changed, 2 deletions(-)
New commits:
commit e3f53c5faae8e5e8e14dc1dbb27f8f184bd44b42
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri Sep 11 14:27:15 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Sep 11 18:14:04 2020 +0200
remove outdated comments
ever since
commit 722aa442977e5ca27ab05b4299d26346b5a4e883
convert some MAXCOL to use ScSheetLimits
Change-Id: I15bd107e1d0f81a5b3223c3d6995b4105f97ce01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102464
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 8ad1fec19f1b..d0bf33ae0d95 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -48,12 +48,10 @@ using namespace com::sun::star;
// maximum values for UI
static SCCOL SCNAV_MAXCOL(const ScSheetLimits& rLimits) { return rLimits.GetMaxColCount(); }
-// macro is sufficient since only used in ctor
static sal_Int32 SCNAV_COLDIGITS(const ScSheetLimits& rLimits)
{
return static_cast<sal_Int32>( floor( log10( static_cast<double>(SCNAV_MAXCOL(rLimits)))) ) + 1; // 1...256...18278
}
-// precomputed constant because it is used in every change of spin button field
static sal_Int32 SCNAV_COLLETTERS(const ScSheetLimits& rLimits)
{
return ::ScColToAlpha(SCNAV_MAXCOL(rLimits)).getLength(); // A...IV...ZZZ
More information about the Libreoffice-commits
mailing list