summaryrefslogtreecommitdiff
path: root/include/editeng/borderline.hxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-10-08 13:14:11 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-10-08 15:46:02 +0200
commitc78861094f57198f4cd7117a85a5915358742209 (patch)
tree2b9abe1f78aa89524308ede35549a86574763a3c /include/editeng/borderline.hxx
parent70c46e0e03a758fda4e94b561fdcae722414719f (diff)
Simplify a bit
Change-Id: Icfa6d5bdc3c1a9e13f7e29d36a4a873a5c6bb05c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157684 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/editeng/borderline.hxx')
-rw-r--r--include/editeng/borderline.hxx15
1 files changed, 7 insertions, 8 deletions
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