Kaydet (Commit) 4328d181 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Fix glitch in SAL_INFO logging

Change-Id: I421d3980c50706f927a0611e48c33a43267dd01b
Reviewed-on: https://gerrit.libreoffice.org/55477Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
üst 8d43de9a
...@@ -2105,12 +2105,13 @@ public: ...@@ -2105,12 +2105,13 @@ public:
return S_OK; return S_OK;
} }
virtual HRESULT STDMETHODCALLTYPE STDMETHODCALLTYPE Skip(ULONG celt) override virtual HRESULT STDMETHODCALLTYPE STDMETHODCALLTYPE Skip(ULONG const celt) override
{ {
comphelper::Automation::AutomationInvokedZone aAutomationActive; comphelper::Automation::AutomationInvokedZone aAutomationActive;
ULONG nLeft = celt;
ULONG nSkipped = 0; ULONG nSkipped = 0;
while (celt > 0) while (nLeft > 0)
{ {
if (mnIndex > mxCollection->getCount()) if (mnIndex > mxCollection->getCount())
{ {
...@@ -2118,7 +2119,7 @@ public: ...@@ -2118,7 +2119,7 @@ public:
return S_FALSE; return S_FALSE;
} }
mnIndex++; mnIndex++;
celt--; nLeft--;
} }
SAL_INFO("extensions.olebridge", this << "@CXEnumVariant::Skip(" << celt << "): S_OK"); SAL_INFO("extensions.olebridge", this << "@CXEnumVariant::Skip(" << celt << "): S_OK");
return S_OK; return S_OK;
......
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