From b8b8f358da1b81f85c056ea32dd9372e641b345e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 21 Jan 2019 17:21:29 +0200 Subject: SAL_INFO also for parameter names that are not found Change-Id: I1b3fd47a23002673cb81811ebfd0034ca546d837 --- extensions/source/ole/unoobjw.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extensions') diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx index 213f2521b56f..798418f482d7 100644 --- a/extensions/source/ole/unoobjw.cxx +++ b/extensions/source/ole/unoobjw.cxx @@ -1189,15 +1189,19 @@ STDMETHODIMP InterfaceOleWrapper::GetIDsOfNames(REFIID /*riid*/, auto aParamInfos = xIdlMethod->getParameterInfos(); for (unsigned int i = 1; i < cNames; ++i) { + bool bFound = false; for (int j = 0; j < aParamInfos.getLength(); ++j) { if (aParamInfos[j].aName.equalsIgnoreAsciiCase(OUString(o3tl::toU(rgszNames[i])))) { rgdispid[i] = j; + bFound = true; SAL_INFO("extensions.olebridge", " " << OUString(o3tl::toU(rgszNames[i])) << ": " << rgdispid[i]); break; } } + if (!bFound) + SAL_INFO("extensions.olebridge", " " << OUString(o3tl::toU(rgszNames[i])) << ": NOT FOUND"); } } } -- cgit