summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-03-15 18:54:17 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-03-15 18:54:48 +0100
commit08ba87c55858335094c24ca4e610a13da133330c (patch)
tree22b00bde69c556f9b31b73e3a049038f0320ef31 /dbaccess
parent80c235510aeb19d4df6a07be7499e70122313bbf (diff)
fixup: use introduced preprocessor constant instead of hardcoded constant
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index 267c7a97635f..12b5b2922bd8 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -2319,9 +2319,9 @@ namespace
const ::connectivity::OSQLParseNode* pParseRoot )
{
SqlParseError eErrorCode = eOk;
- if (!pParseRoot->getChild(3)->getChild(5)->isLeaf())
+ if (!pParseRoot->getChild(3)->getChild(ORDER_BY_CHILD_POS)->isLeaf())
{
- ::connectivity::OSQLParseNode* pNode = pParseRoot->getChild(3)->getChild(5)->getChild(2);
+ ::connectivity::OSQLParseNode* pNode = pParseRoot->getChild(3)->getChild(ORDER_BY_CHILD_POS)->getChild(2);
::connectivity::OSQLParseNode* pParamRef = NULL;
OQueryController& rController = static_cast<OQueryController&>(_pView->getController());