diff options
author | Peter Foley <pefoley2@verizon.net> | 2011-12-18 01:28:13 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2011-12-18 01:28:13 +0100 |
commit | 1841baf54f053c54969d0164185e2366f9efb3fd (patch) | |
tree | 62ccee153a7d6c84df83a913948b1921a5ac1e21 /extensions/source/activex/SOComWindowPeer.cxx | |
parent | 42506a1cfdad85ead9620b363de99d7475a8fb08 (diff) |
extensions: convert activex to gbuild
Diffstat (limited to 'extensions/source/activex/SOComWindowPeer.cxx')
-rw-r--r-- | extensions/source/activex/SOComWindowPeer.cxx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/extensions/source/activex/SOComWindowPeer.cxx b/extensions/source/activex/SOComWindowPeer.cxx new file mode 100644 index 000000000000..7fb56dbdfd32 --- /dev/null +++ b/extensions/source/activex/SOComWindowPeer.cxx @@ -0,0 +1,31 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +// SOComWindowPeer.cpp : Implementation of CHelpApp and DLL registration. + +#include "stdafx2.h" +#include "so_activex.h" +#include "SOComWindowPeer.h" +#include <sal/macros.h> + +///////////////////////////////////////////////////////////////////////////// +// + +STDMETHODIMP SOComWindowPeer::InterfaceSupportsErrorInfo(REFIID riid) +{ + static const IID* arr[] = + { + &IID_ISOComWindowPeer, + }; + + for (int i=0;i<SAL_N_ELEMENTS(arr);i++) + { +#if defined(_MSC_VER) && (_MSC_VER >= 1300) + if (InlineIsEqualGUID(*arr[i],riid)) +#else + if (::ATL::InlineIsEqualGUID(*arr[i],riid)) +#endif + return S_OK; + } + return S_FALSE; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |