[Libreoffice-commits] .: odk/examples
Thorsten Behrens
thorsten at kemper.freedesktop.org
Thu Nov 4 02:35:15 PDT 2010
odk/examples/OLE/activex/SOComWindowPeer.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 45a2f2f291279846f2720045fb11f74868f9bca4
Author: julien <serval2412 at yahoo.fr>
Date: Thu Nov 4 10:34:58 2010 +0100
Use SAL_N_ELEMENTS in clone/sdk directory
diff --git a/odk/examples/OLE/activex/SOComWindowPeer.cpp b/odk/examples/OLE/activex/SOComWindowPeer.cpp
index 0b2fabf..1065a1b 100644
--- a/odk/examples/OLE/activex/SOComWindowPeer.cpp
+++ b/odk/examples/OLE/activex/SOComWindowPeer.cpp
@@ -38,6 +38,7 @@
#include "stdafx2.h"
#include "so_activex.h"
#include "SOComWindowPeer.h"
+#include <sal/macros.h>
/////////////////////////////////////////////////////////////////////////////
//
@@ -49,7 +50,7 @@ STDMETHODIMP SOComWindowPeer::InterfaceSupportsErrorInfo(REFIID riid)
&IID_ISOComWindowPeer,
};
- for (int i=0;i<sizeof(arr)/sizeof(arr[0]);i++)
+ for (int i=0;i<SAL_N_ELEMENTS(arr);i++)
{
if (InlineIsEqualGUID(*arr[i],riid))
return S_OK;
More information about the Libreoffice-commits
mailing list