summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-11-06 20:56:20 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-11-06 20:56:46 -0500
commit7220b55f6347e2236e63491cd5d1ef9355c3320a (patch)
tree89db49888cfe44ecc981778f47acb132235b6954 /include/formula
parentdb65fff2aa0e98622932c0372212b4a68f65b72e (diff)
Correct reference count type.
Change-Id: Id7902c8d21d22a6d5f3740a6bd72e0c1213461e7
Diffstat (limited to 'include/formula')
-rw-r--r--include/formula/token.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/formula/token.hxx b/include/formula/token.hxx
index ea91e2c4ff7e..f5b49cc66839 100644
--- a/include/formula/token.hxx
+++ b/include/formula/token.hxx
@@ -93,13 +93,13 @@ class FORMULA_DLLPUBLIC FormulaToken : public IFormulaToken
protected:
const StackVar eType; // type of data
- mutable sal_uInt16 nRefCnt; // reference count
+ mutable oslInterlockedCount mnRefCnt; // reference count
public:
FormulaToken( StackVar eTypeP,OpCode e = ocPush ) :
- eOp(e), eType( eTypeP ), nRefCnt(0) {}
+ eOp(e), eType( eTypeP ), mnRefCnt(0) {}
FormulaToken( const FormulaToken& r ) : IFormulaToken(),
- eOp(r.eOp), eType( r.eType ), nRefCnt(0) {}
+ eOp(r.eOp), eType( r.eType ), mnRefCnt(0) {}
virtual ~FormulaToken();
@@ -111,16 +111,16 @@ public:
inline void IncRef() const
{
- osl_atomic_increment(&nRefCnt);
+ osl_atomic_increment(&mnRefCnt);
}
inline void DecRef() const
{
- if (!osl_atomic_decrement(&nRefCnt))
+ if (!osl_atomic_decrement(&mnRefCnt))
const_cast<FormulaToken*>(this)->Delete();
}
- inline sal_uInt16 GetRef() const { return nRefCnt; }
+ inline oslInterlockedCount GetRef() const { return mnRefCnt; }
inline OpCode GetOpCode() const { return eOp; }
/**