diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-10 10:53:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-10 21:46:39 +0000 |
commit | 61b8596f1114d7b9b6ebcaedf125eeb8821d2c9f (patch) | |
tree | f0a8c6c33c63fa6e0ac70b58d6dee0b1ff542f3b /configmgr | |
parent | 33c2688e91164e162e38aca5bc1d066b6063b5fd (diff) |
cppcheck: assertWithSideEffect
Change-Id: I6601e857394d7b460a105e851529350a62d1a2a6
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/childaccess.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configmgr/source/childaccess.cxx b/configmgr/source/childaccess.cxx index 259d968d76ee..a9771ff78d20 100644 --- a/configmgr/source/childaccess.cxx +++ b/configmgr/source/childaccess.cxx @@ -92,8 +92,9 @@ ChildAccess::ChildAccess( } Path ChildAccess::getAbsolutePath() { - assert(getParentAccess().is()); - Path path(getParentAccess()->getAbsolutePath()); + rtl::Reference< Access > parent(getParentAccess()); + assert(parent.is()); + Path path(parent->getAbsolutePath()); path.push_back(name_); return path; } |