summaryrefslogtreecommitdiff
path: root/configmgr/source/partial.cxx
diff options
context:
space:
mode:
authorJakub Trzebiatowski <ubap.dev@gmail.com>2016-03-07 19:48:23 +0100
committerNoel Grandin <noelgrandin@gmail.com>2016-03-15 06:26:57 +0000
commit89e0663c55f7f1763536a345d63111115c71ef26 (patch)
treebb9a3a82a3f462cb72242e02c0a974285a80d40a /configmgr/source/partial.cxx
parent869262bcc980d1d964036dbaba87a456479f53b7 (diff)
tdf#96099 fix trival typedefs, Path to std::vector<OUString>
Change-Id: I23fca48becbfdfd92db02a11b739a668fc1cd8c4 Reviewed-on: https://gerrit.libreoffice.org/23007 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'configmgr/source/partial.cxx')
-rw-r--r--configmgr/source/partial.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/source/partial.cxx b/configmgr/source/partial.cxx
index 3b39b6edddba..d0ba41aba1ee 100644
--- a/configmgr/source/partial.cxx
+++ b/configmgr/source/partial.cxx
@@ -109,7 +109,7 @@ Partial::Partial(
Partial::~Partial() {}
-Partial::Containment Partial::contains(Path const & path) const {
+Partial::Containment Partial::contains(std::vector<OUString> const & path) const {
//TODO: For set elements, the segment names recorded in the node tree need
// not match the corresponding path segments, so this function can fail.
@@ -121,7 +121,7 @@ Partial::Containment Partial::contains(Path const & path) const {
// ** If there is no startInclude along its trace: => CONTAINS_SUBNODES
Node const * p = &root_;
bool bIncludes = false;
- for (Path::const_iterator i(path.begin()); i != path.end(); ++i) {
+ for (auto i(path.begin()); i != path.end(); ++i) {
Node::Children::const_iterator j(p->children.find(*i));
if (j == p->children.end()) {
return p->startInclude ? CONTAINS_NODE : CONTAINS_NOT;