diff options
Diffstat (limited to 'i18npool/source')
-rw-r--r-- | i18npool/source/localedata/LocaleNode.cxx | 8 | ||||
-rw-r--r-- | i18npool/source/localedata/LocaleNode.hxx | 3 |
2 files changed, 2 insertions, 9 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; } diff --git a/i18npool/source/localedata/LocaleNode.hxx b/i18npool/source/localedata/LocaleNode.hxx index 226d2577e6e0..00e24be389d6 100644 --- a/i18npool/source/localedata/LocaleNode.hxx +++ b/i18npool/source/localedata/LocaleNode.hxx @@ -88,8 +88,6 @@ class LocaleNode sal_Int32 nChildren; sal_Int32 childArrSize; - void setParent ( LocaleNode* node); - protected: mutable int nError; @@ -106,7 +104,6 @@ public: void printR () const; virtual ~LocaleNode(); void addChild ( LocaleNode * node); - const LocaleNode* getParent() const { return parent; }; const LocaleNode* getRoot() const; int getError() const; virtual void generateCode (const OFileWriter &of) const; |