diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-09 11:29:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-13 09:38:13 +0000 |
commit | e2e76df7e48fb77f1e802f57c7d9a22eb8c74c5a (patch) | |
tree | 15a072f5563c843939b0900aed256b7c89340407 /rsc/inc/rscpar.hxx | |
parent | 417bc898802630c567d970d0283312697acdd5ff (diff) |
create strong_int template and use it in tools::UniqueIndex
an experiment to see how useful a strong_int template works out
Change-Id: Ib77700350f0fa3b018a1926233adf7a40d728d16
Reviewed-on: https://gerrit.libreoffice.org/34072
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'rsc/inc/rscpar.hxx')
-rw-r--r-- | rsc/inc/rscpar.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/rsc/inc/rscpar.hxx b/rsc/inc/rscpar.hxx index 695ea6e3e988..265158ba185c 100644 --- a/rsc/inc/rscpar.hxx +++ b/rsc/inc/rscpar.hxx @@ -21,6 +21,7 @@ #include <rsctools.hxx> #include <rscerror.h> +#include <rscdef.hxx> #include <tools/solar.h> class RscTypCont; @@ -33,8 +34,8 @@ class RscFileInst sal_uInt32 nErrorLine; // Zeile des ersten Fehlers sal_uInt32 nErrorPos; // Position des ersten Fehlers sal_uInt32 nLineNo; // Zeile in der Eingabedatei - sal_uLong lFileIndex; // Index auf Eingabedatei - sal_uLong lSrcIndex; // Index auf Basisdatei + RscFileTab::Index lFileIndex; // Index auf Eingabedatei + RscFileTab::Index lSrcIndex; // Index auf Basisdatei FILE * fInputFile; // Eingabedatei char * pInput; // Lesepuffer static const sal_uInt32 nInputBufLen = READBUFFER_MAX; // Laenge des Lesepuffers @@ -49,12 +50,12 @@ class RscFileInst public: RscTypCont * pTypCont; void Init(); // ctor initialisieren - RscFileInst( RscTypCont * pTC, sal_uLong lIndexSrc, - sal_uLong lFileIndex, FILE * fFile ); + RscFileInst( RscTypCont * pTC, RscFileTab::Index lIndexSrc, + RscFileTab::Index lFileIndex, FILE * fFile ); ~RscFileInst(); bool IsEof() const { return bEof; } - void SetFileIndex( sal_uLong lFIndex ) { lFileIndex = lFIndex; } - sal_uLong GetFileIndex() { return lFileIndex; } + void SetFileIndex( RscFileTab::Index lFIndex ) { lFileIndex = lFIndex; } + RscFileTab::Index GetFileIndex() { return lFileIndex; } void SetLineNo( sal_uInt32 nLine ) { nLineNo = nLine; } sal_uInt32 GetLineNo() { return nLineNo; } sal_uInt32 GetScanPos() { return nScanPos; } |