summaryrefslogtreecommitdiffstats
path: root/connectivity/source/commontools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-06 08:54:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-06 09:13:25 +0000
commitc9c3cb5446bfeb621d5fee5d50d19c8e030e3087 (patch)
tree4d563d16c2d35e153dcab833de7ad87e5a2e6620 /connectivity/source/commontools
parentOpenGLWindow typeinfo unavailable without HAVE_FEATURE_OPENGL (diff)
downloadcore-c9c3cb5446bfeb621d5fee5d50d19c8e030e3087.tar.gz
core-c9c3cb5446bfeb621d5fee5d50d19c8e030e3087.zip
loplugin:unusedenumconstants in connectivity..cui
Convert ExpressionFunct to scoped enum and drop FUNC_CONST value. Convert MQueryExpressionBase::node_type to scoped enum and drop Unknown value. Dop PageType::Color value Change-Id: Icb1f5503c230fb91329acc7d9e1da665fa28d95e Reviewed-on: https://gerrit.libreoffice.org/33948 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/commontools')
-rw-r--r--connectivity/source/commontools/RowFunctionParser.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/connectivity/source/commontools/RowFunctionParser.cxx b/connectivity/source/commontools/RowFunctionParser.cxx
index b44713f4c961..dd7d05f03900 100644
--- a/connectivity/source/commontools/RowFunctionParser.cxx
+++ b/connectivity/source/commontools/RowFunctionParser.cxx
@@ -93,13 +93,13 @@ public:
ORowSetValueDecoratorRef aRet;
switch(meFunct)
{
- case ENUM_FUNC_EQUATION:
+ case ExpressionFunct::Equation:
aRet = new ORowSetValueDecorator( mpFirstArg->evaluate(_aRow )->getValue() == mpSecondArg->evaluate(_aRow )->getValue() );
break;
- case ENUM_FUNC_AND:
+ case ExpressionFunct::And:
aRet = new ORowSetValueDecorator( mpFirstArg->evaluate(_aRow )->getValue().getBool() && mpSecondArg->evaluate(_aRow )->getValue().getBool() );
break;
- case ENUM_FUNC_OR:
+ case ExpressionFunct::Or:
aRet = new ORowSetValueDecorator( mpFirstArg->evaluate(_aRow )->getValue().getBool() || mpSecondArg->evaluate(_aRow )->getValue().getBool() );
break;
default:
@@ -111,7 +111,7 @@ public:
{
switch(meFunct)
{
- case ENUM_FUNC_EQUATION:
+ case ExpressionFunct::Equation:
(*mpFirstArg->evaluate(_aRow )) = mpSecondArg->evaluate(_aRow )->getValue();
break;
default:
@@ -334,18 +334,18 @@ public:
assignment =
unaryFunction >> ch_p('=') >> argument
- [ BinaryFunctionFunctor( ENUM_FUNC_EQUATION, self.getContext()) ]
+ [ BinaryFunctionFunctor( ExpressionFunct::Equation, self.getContext()) ]
;
andExpression =
assignment
| ( '(' >> orExpression >> ')' )
- | ( assignment >> AND_ >> assignment ) [ BinaryFunctionFunctor( ENUM_FUNC_AND, self.getContext()) ]
+ | ( assignment >> AND_ >> assignment ) [ BinaryFunctionFunctor( ExpressionFunct::And, self.getContext()) ]
;
orExpression =
andExpression
- | ( orExpression >> OR_ >> andExpression ) [ BinaryFunctionFunctor( ENUM_FUNC_OR, self.getContext()) ]
+ | ( orExpression >> OR_ >> andExpression ) [ BinaryFunctionFunctor( ExpressionFunct::Or, self.getContext()) ]
;
basicExpression =