summaryrefslogtreecommitdiff
path: root/rsc/source/parser
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-09 11:29:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-13 09:38:13 +0000
commite2e76df7e48fb77f1e802f57c7d9a22eb8c74c5a (patch)
tree15a072f5563c843939b0900aed256b7c89340407 /rsc/source/parser
parent417bc898802630c567d970d0283312697acdd5ff (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/source/parser')
-rw-r--r--rsc/source/parser/rscdb.cxx10
-rw-r--r--rsc/source/parser/rscpar.cxx4
2 files changed, 7 insertions, 7 deletions
diff --git a/rsc/source/parser/rscdb.cxx b/rsc/source/parser/rscdb.cxx
index bb0fecf03706..1675cc4f8d1e 100644
--- a/rsc/source/parser/rscdb.cxx
+++ b/rsc/source/parser/rscdb.cxx
@@ -239,7 +239,7 @@ private:
ERRTYPE aError; // contains the first field
RscTypCont* pTypCont;
FILE * fOutput; // output file
- sal_uLong lFileKey; // what source file
+ RscFileTab::Index lFileKey; // what source file
RscTop * pClass;
RscEnumerateObj(RscTypCont* pTC, FILE* pOutputFile)
@@ -358,7 +358,7 @@ public:
pRoot->EnumNodes( LINK( this, RscEnumerateRef, CallBackWriteRc ) );
return aEnumObj.aError;
}
- ERRTYPE const & WriteSrc( sal_uLong lFileKey )
+ ERRTYPE const & WriteSrc( RscFileTab::Index lFileKey )
{
aEnumObj.lFileKey = lFileKey;
@@ -424,14 +424,14 @@ void RscTypCont::WriteSrc( FILE * fOutput, RscFileTab::Index nFileKey )
class RscDel
{
- sal_uLong lFileKey;
+ RscFileTab::Index lFileKey;
DECL_LINK( Delete, const NameNode&, void );
public:
- RscDel( RscTop * pRoot, sal_uLong lKey );
+ RscDel( RscTop * pRoot, RscFileTab::Index lKey );
};
-inline RscDel::RscDel( RscTop * pRoot, sal_uLong lKey )
+inline RscDel::RscDel( RscTop * pRoot, RscFileTab::Index lKey )
: lFileKey(lKey)
{
pRoot->EnumNodes( LINK( this, RscDel, Delete ) );
diff --git a/rsc/source/parser/rscpar.cxx b/rsc/source/parser/rscpar.cxx
index d81d3aae9c57..4fc1b11f8cdf 100644
--- a/rsc/source/parser/rscpar.cxx
+++ b/rsc/source/parser/rscpar.cxx
@@ -32,8 +32,8 @@ void RscFileInst::Init()
bEof = false;
}
-RscFileInst::RscFileInst( RscTypCont * pTC, sal_uLong lIndexSrc,
- sal_uLong lFIndex, FILE * fFile )
+RscFileInst::RscFileInst( RscTypCont * pTC, RscFileTab::Index lIndexSrc,
+ RscFileTab::Index lFIndex, FILE * fFile )
: nErrorLine(0)
, nErrorPos(0)
{