diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-02-03 13:04:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-02-03 14:47:41 +0100 |
commit | c98eb95249e73ee4341f21f6406dd8a8cda51960 (patch) | |
tree | 3307faa12257f9d85ee23df20562f40e7942b724 | |
parent | 6e2ed4ea934851f82611c3352b9551046fda89d0 (diff) |
Change class with only static member functions into namespace
...and drop the SVX_DLLPUBLIC as all the functions are inline. (The class had
introduced as SVX_DLLPUBLIC with 1386c348f81738a9966d1217db89d1f603466317
"fdo#82616: set limits on spinboxes according to size of workarea", but for no
obvious reason. It now showed up among the "10 @@@ [that] ask for follow-up
clean up" at ff546a5dd35d6a31f01c70a9b995afc1f7b7389e "tdf#128302: Split
SVXCORE_DLLPUBLIC from SVX_DLLPUBLIC".)
Change-Id: I366b19d596da7cf44a192b1faf47e8ea75d25685
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87860
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | include/svx/transfrmhelper.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/svx/transfrmhelper.hxx b/include/svx/transfrmhelper.hxx index 19ddbfa158c3..0c9b7e958107 100644 --- a/include/svx/transfrmhelper.hxx +++ b/include/svx/transfrmhelper.hxx @@ -21,16 +21,14 @@ #define INCLUDED_SVX_TRANSFRMHELPER_HXX #include <basegfx/range/b2drange.hxx> -#include <svx/svxdllapi.h> #include <tools/fract.hxx> #include <tools/fldunit.hxx> #include <tools/mapunit.hxx> #include <vcl/field.hxx> -class SVX_DLLPUBLIC TransfrmHelper +namespace TransfrmHelper { -public: - static void ConvertRect(basegfx::B2DRange& rRange, const sal_uInt16 nDigits, const MapUnit ePoolUnit, const FieldUnit eDlgUnit) + inline void ConvertRect(basegfx::B2DRange& rRange, const sal_uInt16 nDigits, const MapUnit ePoolUnit, const FieldUnit eDlgUnit) { const basegfx::B2DPoint aTopLeft( static_cast<double>(MetricField::ConvertValue(basegfx::fround(rRange.getMinX()), nDigits, ePoolUnit, eDlgUnit)), @@ -42,12 +40,12 @@ public: rRange = basegfx::B2DRange(aTopLeft, aBottomRight); } - static void ScaleRect(basegfx::B2DRange& rRange, const Fraction& rUIScale) + inline void ScaleRect(basegfx::B2DRange& rRange, const Fraction& rUIScale) { const double fFactor(1.0 / double(rUIScale)); rRange = basegfx::B2DRange(rRange.getMinimum() * fFactor, rRange.getMaximum() * fFactor); } -}; +} #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |