summaryrefslogtreecommitdiff
path: root/editeng/inc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-10-30 11:03:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-30 15:43:23 +0200
commitbc413e15fae3672f580894a3cd7b077d533d8e6c (patch)
tree0e6306258a5f0086354f4972bd9eeb628672bfab /editeng/inc
parent70db0942c3f63bed8c2ff517e80c06cef9b52267 (diff)
tools::Long->sal_Int32 in the DX arrays
Change-Id: I36ddc11b39763dc77086591fe9bb756195b4294f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124459 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/inc')
-rw-r--r--editeng/inc/editdoc.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx
index 7d9af8e7d616..4fdff5b2a378 100644
--- a/editeng/inc/editdoc.hxx
+++ b/editeng/inc/editdoc.hxx
@@ -362,14 +362,14 @@ struct ExtraPortionInfo
bool bFirstCharIsRightPunktuation;
bool bCompressed;
- std::unique_ptr<tools::Long[]> pOrgDXArray;
+ std::unique_ptr<sal_Int32[]> pOrgDXArray;
std::vector< sal_Int32 > lineBreaksList;
ExtraPortionInfo();
~ExtraPortionInfo();
- void SaveOrgDXArray( const tools::Long* pDXArray, sal_Int32 nLen );
+ void SaveOrgDXArray( const sal_Int32* pDXArray, sal_Int32 nLen );
};
@@ -460,12 +460,12 @@ class ParaPortion;
class EditLine
{
public:
- typedef std::vector<tools::Long> CharPosArrayType;
+ typedef std::vector<sal_Int32> CharPosArrayType;
private:
CharPosArrayType aPositions;
- tools::Long nTxtWidth;
- tools::Long nStartPosX;
+ sal_Int32 nTxtWidth;
+ sal_Int32 nStartPosX;
sal_Int32 nStart; // could be replaced by nStartPortion
sal_Int32 nEnd; // could be replaced by nEndPortion
sal_Int32 nStartPortion;
@@ -505,8 +505,8 @@ public:
sal_uInt16 GetHeight() const { return nHeight; }
sal_uInt16 GetTxtHeight() const { return nTxtHeight; }
- void SetTextWidth( tools::Long n ) { nTxtWidth = n; }
- tools::Long GetTextWidth() const { return nTxtWidth; }
+ void SetTextWidth( sal_Int32 n ) { nTxtWidth = n; }
+ sal_Int32 GetTextWidth() const { return nTxtWidth; }
void SetMaxAscent( sal_uInt16 n ) { nMaxAscent = n; }
sal_uInt16 GetMaxAscent() const { return nMaxAscent; }
@@ -516,8 +516,8 @@ public:
sal_Int32 GetLen() const { return nEnd - nStart; }
- tools::Long GetStartPosX() const { return nStartPosX; }
- void SetStartPosX( tools::Long start );
+ sal_Int32 GetStartPosX() const { return nStartPosX; }
+ void SetStartPosX( sal_Int32 start );
Size CalcTextSize( ParaPortion& rParaPortion );
bool IsInvalid() const { return bInvalid; }