From c78861094f57198f4cd7117a85a5915358742209 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 8 Oct 2023 13:14:11 +0300 Subject: Simplify a bit Change-Id: Icfa6d5bdc3c1a9e13f7e29d36a4a873a5c6bb05c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157684 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- include/editeng/borderline.hxx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'include/editeng/borderline.hxx') diff --git a/include/editeng/borderline.hxx b/include/editeng/borderline.hxx index 596b8b59f413..851c16156dee 100644 --- a/include/editeng/borderline.hxx +++ b/include/editeng/borderline.hxx @@ -34,15 +34,14 @@ class IntlWrapper; // Line width defaults in twips // Thin matches Excel's default values // See tdf#48622 for the discussion leading to these defaults. -class SvxBorderLineWidth +namespace SvxBorderLineWidth { -public: - static const sal_Int16 Hairline = 1; // 0.05pt - static const sal_Int16 VeryThin = 10; // 0.5pt - static const sal_Int16 Thin = 15; // 0.75pt - static const sal_Int16 Medium = 30; // 1.5pt - static const sal_Int16 Thick = 45; // 2.25pt - static const sal_Int16 ExtraThick = 90; // 4.5pt +constexpr inline sal_Int16 Hairline = 1; // 0.05pt +constexpr inline sal_Int16 VeryThin = 10; // 0.5pt +constexpr inline sal_Int16 Thin = 15; // 0.75pt +constexpr inline sal_Int16 Medium = 30; // 1.5pt +constexpr inline sal_Int16 Thick = 45; // 2.25pt +constexpr inline sal_Int16 ExtraThick = 90; // 4.5pt }; // Abstracts over values from css::table::BorderLineStyle -- cgit