diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-11-08 19:41:42 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-11-10 21:08:08 +0100 |
commit | a847127fc32c2c611a7c2cc281e1ce7b27bb7754 (patch) | |
tree | e3080aaf57c994eb6425811a5c2f27d5251227c3 /include/svx | |
parent | b905d3e9f261fd9dbe9fdbedacd302ee2898c24a (diff) |
XDash: salu_uIntPtr to sal_uInt32
Unsigned integer was used tp be consistent with previous integral type,
but both unsigned and signed integers are used by callers.
Change-Id: I3f902e00fbff690a72a7ca0f1c818976d3d2bebe
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/xdash.hxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/svx/xdash.hxx b/include/svx/xdash.hxx index 4b0ef84d88cf..f7e20e9a386f 100644 --- a/include/svx/xdash.hxx +++ b/include/svx/xdash.hxx @@ -35,31 +35,31 @@ class SVX_DLLPUBLIC XDash protected: css::drawing::DashStyle eDash; sal_uInt16 nDots; - sal_uIntPtr nDotLen; + sal_uInt32 nDotLen; sal_uInt16 nDashes; - sal_uIntPtr nDashLen; - sal_uIntPtr nDistance; + sal_uInt32 nDashLen; + sal_uInt32 nDistance; public: XDash(css::drawing::DashStyle eDash = css::drawing::DashStyle_RECT, - sal_uInt16 nDots = 1, sal_uIntPtr nDotLen = 20, - sal_uInt16 nDashes = 1, sal_uIntPtr nDashLen = 20, sal_uIntPtr nDistance = 20); + sal_uInt16 nDots = 1, sal_uInt32 nDotLen = 20, + sal_uInt16 nDashes = 1, sal_uInt32 nDashLen = 20, sal_uInt32 nDistance = 20); bool operator==(const XDash& rDash) const; void SetDashStyle(css::drawing::DashStyle eNewStyle) { eDash = eNewStyle; } void SetDots(sal_uInt16 nNewDots) { nDots = nNewDots; } - void SetDotLen(sal_uIntPtr nNewDotLen) { nDotLen = nNewDotLen; } + void SetDotLen(sal_uInt32 nNewDotLen) { nDotLen = nNewDotLen; } void SetDashes(sal_uInt16 nNewDashes) { nDashes = nNewDashes; } - void SetDashLen(sal_uIntPtr nNewDashLen) { nDashLen = nNewDashLen; } - void SetDistance(sal_uIntPtr nNewDistance) { nDistance = nNewDistance; } + void SetDashLen(sal_uInt32 nNewDashLen) { nDashLen = nNewDashLen; } + void SetDistance(sal_uInt32 nNewDistance) { nDistance = nNewDistance; } css::drawing::DashStyle GetDashStyle() const { return eDash; } sal_uInt16 GetDots() const { return nDots; } - sal_uIntPtr GetDotLen() const { return nDotLen; } + sal_uInt32 GetDotLen() const { return nDotLen; } sal_uInt16 GetDashes() const { return nDashes; } - sal_uIntPtr GetDashLen() const { return nDashLen; } - sal_uIntPtr GetDistance() const { return nDistance; } + sal_uInt32 GetDashLen() const { return nDashLen; } + sal_uInt32 GetDistance() const { return nDistance; } // XDash is translated into an array of doubles which describe the lengths of the // dashes, dots and empty passages. It returns the complete length of the full DashDot |