summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-02-10 11:46:55 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-10 11:18:26 +0100
commitb95512e936b4eebb301c169e091bd9064c1eb2ac (patch)
tree877382ff71bbb4a993396f0fc58aa0f8e67b4bc2 /sal/rtl
parent05bcc58408f5969bbab42dee66c6dc97ee63bd73 (diff)
tdf#39593 use existing find() to reduce copypaste
Change-Id: Id6280424627a3bbcb484d61cee2f2003aa1ca9b6 Reviewed-on: https://gerrit.libreoffice.org/67604 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/bootstrap.cxx16
1 files changed, 1 insertions, 15 deletions
diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx
index 9c6675586ef9..3482017958c0 100644
--- a/sal/rtl/bootstrap.cxx
+++ b/sal/rtl/bootstrap.cxx
@@ -196,21 +196,7 @@ static bool getFromCommandLineArgs(
return tmp;
}();
- bool found = false;
-
- for(NameValueVector::iterator ii = nameValueVector.begin();
- ii != nameValueVector.end();
- ++ii)
- {
- if ((*ii).sName == key)
- {
- *value = (*ii).sValue;
- found = true;
- break;
- }
- }
-
- return found;
+ return find(nameValueVector, key, value);
}
static void getExecutableDirectory_Impl(rtl_uString ** ppDirURL)