[Libreoffice-commits] .: extensions/source
Tor Lillqvist
tml at kemper.freedesktop.org
Mon Oct 18 06:35:09 PDT 2010
extensions/source/activex/main/SOComWindowPeer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 34bc909febcde168393d9bfdab920b30fcead851
Author: Tor Lillqvist <tlillqvist at novell.com>
Date: Mon Oct 18 16:31:16 2010 +0300
Revert SAL_N_ELEMENTS change for one file
This source file does not seem to include any of the usual LibreOffice
headers, so we should not use SAL_N_ELEMENTS in it.
diff --git a/extensions/source/activex/main/SOComWindowPeer.cpp b/extensions/source/activex/main/SOComWindowPeer.cpp
index 0eec347..b6c0986 100644
--- a/extensions/source/activex/main/SOComWindowPeer.cpp
+++ b/extensions/source/activex/main/SOComWindowPeer.cpp
@@ -15,7 +15,7 @@ STDMETHODIMP SOComWindowPeer::InterfaceSupportsErrorInfo(REFIID riid)
&IID_ISOComWindowPeer,
};
- for (int i=0;i<SAL_N_ELEMENTS(arr);i++)
+ for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
{
#if defined(_MSC_VER) && (_MSC_VER >= 1300)
if (InlineIsEqualGUID(*arr[i],riid))
More information about the Libreoffice-commits
mailing list