summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-06-07 15:53:06 +0300
committerTor Lillqvist <tml@collabora.com>2018-06-08 17:05:29 +0300
commita4bc1364e2fda875b2c7d91b21625039f3bc38ec (patch)
tree26814a5fadc5f918a0c2b191ad9500196e70d38f /extensions
parentfe57da646d0f458eee20071a0565169f5f4ee3e7 (diff)
Fix glitch in SAL_INFO logging
Change-Id: I421d3980c50706f927a0611e48c33a43267dd01b
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/ole/unoobjw.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx
index cbbef90f7d42..14020457e5bd 100644
--- a/extensions/source/ole/unoobjw.cxx
+++ b/extensions/source/ole/unoobjw.cxx
@@ -2108,12 +2108,13 @@ public:
return S_OK;
}
- virtual HRESULT STDMETHODCALLTYPE STDMETHODCALLTYPE Skip(ULONG celt) override
+ virtual HRESULT STDMETHODCALLTYPE STDMETHODCALLTYPE Skip(ULONG const celt) override
{
comphelper::Automation::AutomationInvokedZone aAutomationActive;
+ ULONG nLeft = celt;
ULONG nSkipped = 0;
- while (celt > 0)
+ while (nLeft > 0)
{
if (mnIndex > mxCollection->getCount())
{
@@ -2121,7 +2122,7 @@ public:
return S_FALSE;
}
mnIndex++;
- celt--;
+ nLeft--;
}
SAL_INFO("extensions.olebridge", this << "@CXEnumVariant::Skip(" << celt << "): S_OK");
return S_OK;