summaryrefslogtreecommitdiff
path: root/sw/inc/redline.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-16 18:22:54 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-16 18:22:54 +0100
commit60b14d663ec561a8606170cf0b7af13725265b01 (patch)
tree825ebb89350d1c04d775709a87039c9a62e7a786 /sw/inc/redline.hxx
parent9b6ed11d58b9f9d0310f95f914a3d354fc813b54 (diff)
Clean up integers representing "redline authors"
Unlinke in previous such clean-up commits, there appears to be no sufficiently exposed container type whose size_type could be used throughout, so resorting to the generic std::size_t in this case. Change-Id: I3cfbcbe5cce1bfcff2efbb4f8a509fe80ab12151
Diffstat (limited to 'sw/inc/redline.hxx')
-rw-r--r--sw/inc/redline.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/sw/inc/redline.hxx b/sw/inc/redline.hxx
index dbdedc4a2b89..b75b666ae8a6 100644
--- a/sw/inc/redline.hxx
+++ b/sw/inc/redline.hxx
@@ -27,6 +27,7 @@
#include <IDocumentRedlineAccess.hxx>
+#include <cstddef>
#include <vector>
class SfxItemSet;
@@ -110,14 +111,15 @@ class SW_DLLPUBLIC SwRedlineData
OUString sComment;
DateTime aStamp;
RedlineType_t eType;
- sal_uInt16 nAuthor, nSeqNo;
+ std::size_t nAuthor;
+ sal_uInt16 nSeqNo;
public:
- SwRedlineData( RedlineType_t eT, sal_uInt16 nAut );
+ SwRedlineData( RedlineType_t eT, std::size_t nAut );
SwRedlineData( const SwRedlineData& rCpy, bool bCpyNext = true );
// For sw3io: pNext/pExtraData are taken over.
- SwRedlineData( RedlineType_t eT, sal_uInt16 nAut, const DateTime& rDT,
+ SwRedlineData( RedlineType_t eT, std::size_t nAut, const DateTime& rDT,
const OUString& rCmnt, SwRedlineData* pNxt );
~SwRedlineData();
@@ -139,7 +141,7 @@ public:
RedlineType_t GetType() const
{ return ((RedlineType_t)(eType & nsRedlineType_t::REDLINE_NO_FLAG_MASK)); }
- sal_uInt16 GetAuthor() const { return nAuthor; }
+ std::size_t GetAuthor() const { return nAuthor; }
const OUString& GetComment() const { return sComment; }
const DateTime& GetTimeStamp() const { return aStamp; }
const SwRedlineData* Next() const{ return pNext; }
@@ -209,7 +211,7 @@ public:
void SetAutoFormatFlag() { pRedlineData->SetAutoFormatFlag(); }
sal_uInt16 GetStackCount() const;
- sal_uInt16 GetAuthor( sal_uInt16 nPos = 0) const;
+ std::size_t GetAuthor( sal_uInt16 nPos = 0) const;
OUString GetAuthorString( sal_uInt16 nPos = 0 ) const;
const DateTime& GetTimeStamp( sal_uInt16 nPos = 0) const;
RedlineType_t GetRealType( sal_uInt16 nPos = 0 ) const;