Kaydet (Commit) b95512e9 authored tarafından Arkadiy Illarionov's avatar Arkadiy Illarionov Kaydeden (comit) Noel Grandin

tdf#39593 use existing find() to reduce copypaste

Change-Id: Id6280424627a3bbcb484d61cee2f2003aa1ca9b6
Reviewed-on: https://gerrit.libreoffice.org/67604
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 05bcc584
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment