summaryrefslogtreecommitdiff
path: root/starmath/inc/parse.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-13 15:50:42 +0200
committerTakeshi Abe <tabe@fixedpoint.jp>2016-05-17 02:28:25 +0000
commitcc1a0ba927ad6f85103059aa8e6108017f436304 (patch)
treea4d8198602047e13979d62f4aa4a28407096ad03 /starmath/inc/parse.hxx
parent4e41e784b97a5b6f5e0cc1f5b24b816ef887b310 (diff)
convert TG constants to scoped enum
Change-Id: Ide719e8bb0d5aacc8d5da18f385b6373c7e48184 Reviewed-on: https://gerrit.libreoffice.org/24973 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/inc/parse.hxx')
-rw-r--r--starmath/inc/parse.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx
index 34194de3b55e..3ebeb2c1e2ee 100644
--- a/starmath/inc/parse.hxx
+++ b/starmath/inc/parse.hxx
@@ -56,7 +56,7 @@ class SmParser
sal_Int32 GetTokenIndex() const { return m_nTokenIndex; }
void Replace( sal_Int32 nPos, sal_Int32 nLen, const OUString &rText );
- inline bool TokenInGroup( sal_uLong nGroup );
+ inline bool TokenInGroup( TG nGroup );
// grammar
void DoTable();
@@ -65,7 +65,7 @@ class SmParser
void DoRelation();
void DoSum();
void DoProduct();
- void DoSubSup(sal_uLong nActiveGroup);
+ void DoSubSup(TG nActiveGroup);
void DoOpSubSup();
void DoPower();
void DoBlank();
@@ -119,9 +119,9 @@ public:
};
-inline bool SmParser::TokenInGroup( sal_uLong nGroup)
+inline bool SmParser::TokenInGroup( TG nGroup)
{
- return (m_aCurToken.nGroup & nGroup) != 0;
+ return bool(m_aCurToken.nGroup & nGroup);
}