summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-25 10:24:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-27 07:34:52 +0100
commit19240f625f8bd7b772481abc8e678d7b0fadd921 (patch)
treedf98eb1d1d2bf11179aea13de58aa38548458b9d /include/formula
parent60c7725a20ff0d77e3025ed60608f57d46e50b58 (diff)
loplugin:unusedfields look for classes where we can make all the..
fields private Change-Id: Id3c6b123f06ab5dcf87628de4c347626110d2d27 Reviewed-on: https://gerrit.libreoffice.org/68302 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/formula')
-rw-r--r--include/formula/token.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/formula/token.hxx b/include/formula/token.hxx
index bd33935cbf26..26643fc08fcd 100644
--- a/include/formula/token.hxx
+++ b/include/formula/token.hxx
@@ -123,12 +123,10 @@ inline std::string StackVarEnumToString(StackVar const e)
class FORMULA_DLLPUBLIC FormulaToken
{
OpCode eOp;
- FormulaToken& operator=( const FormulaToken& ) = delete;
-protected:
-
- const StackVar eType; // type of data
- mutable oslInterlockedCount mnRefCnt; // reference count
+ const StackVar eType; // type of data
+ mutable oslInterlockedCount mnRefCnt; // reference count
+ FormulaToken& operator=( const FormulaToken& ) = delete;
public:
FormulaToken( StackVar eTypeP,OpCode e = ocPush );
FormulaToken( const FormulaToken& r );