summaryrefslogtreecommitdiff
path: root/include/tools/svborder.hxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-19 10:44:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-19 12:56:30 +0200
commit2646023729dd16c1a613fac7e8e6a37828d7a404 (patch)
treecba08360a0812ccd3653a6dcfd1cad03704a3724 /include/tools/svborder.hxx
parent1086654d6e8cc22f1f99195668db3f305437e570 (diff)
add tools::Long typedef and use it in tools
first step to switching long to a 64-bit type on 64-bit windows Change-Id: I640d807426dfe713c7a8984ef560575f8288dbeb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104516 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/tools/svborder.hxx')
-rw-r--r--include/tools/svborder.hxx21
1 files changed, 11 insertions, 10 deletions
diff --git a/include/tools/svborder.hxx b/include/tools/svborder.hxx
index 61e1270e1ccd..92f779cac344 100644
--- a/include/tools/svborder.hxx
+++ b/include/tools/svborder.hxx
@@ -21,19 +21,20 @@
#define INCLUDED_TOOLS_SVBORDER_HXX
#include <tools/toolsdllapi.h>
+#include <tools/long.hxx>
namespace tools { class Rectangle; }
class SAL_WARN_UNUSED TOOLS_DLLPUBLIC SvBorder
{
- long nTop, nRight, nBottom, nLeft;
+ tools::Long nTop, nRight, nBottom, nLeft;
public:
SvBorder()
{
nTop = nRight = nBottom = nLeft = 0;
}
- SvBorder( long nLeftP, long nTopP, long nRightP, long nBottomP )
+ SvBorder( tools::Long nLeftP, tools::Long nTopP, tools::Long nRightP, tools::Long nBottomP )
{
nLeft = nLeftP;
nTop = nTopP;
@@ -55,14 +56,14 @@ public:
Bottom() += rBorder.Bottom();
return *this;
}
- long & Top() { return nTop; }
- long & Right() { return nRight; }
- long & Bottom() { return nBottom; }
- long & Left() { return nLeft; }
- long Top() const { return nTop; }
- long Right() const { return nRight; }
- long Bottom() const { return nBottom; }
- long Left() const { return nLeft; }
+ tools::Long & Top() { return nTop; }
+ tools::Long & Right() { return nRight; }
+ tools::Long & Bottom() { return nBottom; }
+ tools::Long & Left() { return nLeft; }
+ tools::Long Top() const { return nTop; }
+ tools::Long Right() const { return nRight; }
+ tools::Long Bottom() const { return nBottom; }
+ tools::Long Left() const { return nLeft; }
};
TOOLS_DLLPUBLIC tools::Rectangle & operator += ( tools::Rectangle & rRect, const SvBorder & rBorder );