diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-18 14:55:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-19 08:07:18 +0000 |
commit | 877774c05731b7505a3d3a947a1dcb528f36df41 (patch) | |
tree | 7576ec1fcdd6bb6357b7d96347a720fb82d4ee6e /i18npool/source | |
parent | f019ee7cf9e278cd8a27b1c36172ad4c8124080c (diff) |
loplugin:expandablemethodds in hwpfilter..linguistic
Change-Id: If20fd4a6cf8a8e005804dbb7caf41cce73d587a5
Reviewed-on: https://gerrit.libreoffice.org/30016
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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; |