summaryrefslogtreecommitdiff
path: root/i18npool/source/localedata/LocaleNode.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/localedata/LocaleNode.cxx')
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index 1aad3d431cc4..26f0e69663f1 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -84,18 +84,14 @@ void LocaleNode::addChild ( LocaleNode * node) {
children = arrN;
}
children[nChildren++] = node;
- node->setParent (this);
-}
-
-void LocaleNode::setParent ( LocaleNode * node) {
- parent = node;
+ node->parent = this;
}
const LocaleNode* LocaleNode::getRoot() const
{
const LocaleNode* pRoot = nullptr;
const LocaleNode* pParent = this;
- while ( (pParent = pParent->getParent()) != nullptr )
+ while ( (pParent = pParent->parent) != nullptr )
pRoot = pParent;
return pRoot;
}