mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 11:31:54 +00:00
Follow-up of #8224. JIRA issue: CORE-19361 - Add cicIsNullPtr function in Cicero <cicbase.h>. - Reordering of CMakeLists.txt items. - Minor refactoring.
This commit is contained in:
parent
93181db68b
commit
6ba2363bdb
4 changed files with 16 additions and 19 deletions
|
@ -30,6 +30,11 @@ static inline void cicMemFree(LPVOID ptr)
|
||||||
LocalFree(ptr);
|
LocalFree(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool cicIsNullPtr(LPCVOID ptr)
|
||||||
|
{
|
||||||
|
return !ptr;
|
||||||
|
}
|
||||||
|
|
||||||
struct CicNoThrow { };
|
struct CicNoThrow { };
|
||||||
#define cicNoThrow CicNoThrow{}
|
#define cicNoThrow CicNoThrow{}
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,8 @@ list(APPEND SOURCE
|
||||||
|
|
||||||
list(APPEND PCH_SKIP_SOURCE
|
list(APPEND PCH_SKIP_SOURCE
|
||||||
categorymgr.cpp
|
categorymgr.cpp
|
||||||
context.cpp
|
|
||||||
compartmentmgr.cpp
|
compartmentmgr.cpp
|
||||||
|
context.cpp
|
||||||
displayattributemgr.cpp
|
displayattributemgr.cpp
|
||||||
documentmgr.cpp
|
documentmgr.cpp
|
||||||
langbarmgr.cpp
|
langbarmgr.cpp
|
||||||
|
|
|
@ -26,11 +26,6 @@
|
||||||
#include <wine/debug.h>
|
#include <wine/debug.h>
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(msctf);
|
WINE_DEFAULT_DEBUG_CHANNEL(msctf);
|
||||||
|
|
||||||
static inline bool cicIsNullPtr(LPCVOID ptr)
|
|
||||||
{
|
|
||||||
return !ptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef struct tagCompartmentValue
|
typedef struct tagCompartmentValue
|
||||||
|
|
|
@ -26,18 +26,17 @@
|
||||||
#include <wine/debug.h>
|
#include <wine/debug.h>
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(msctf);
|
WINE_DEFAULT_DEBUG_CHANNEL(msctf);
|
||||||
|
|
||||||
static inline bool cicIsNullPtr(LPCVOID ptr)
|
|
||||||
{
|
|
||||||
return !ptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
class CContext
|
class CContext
|
||||||
: public ITfContext
|
: public ITfContext
|
||||||
, public ITfSource
|
, public ITfSource
|
||||||
|
// , public ITfContextComposition
|
||||||
, public ITfContextOwnerCompositionServices
|
, public ITfContextOwnerCompositionServices
|
||||||
|
// , public ITfContextOwnerServices
|
||||||
, public ITfInsertAtSelection
|
, public ITfInsertAtSelection
|
||||||
|
// , public ITfMouseTracker
|
||||||
|
// , public ITfQueryEmbedded
|
||||||
, public ITfSourceSingle
|
, public ITfSourceSingle
|
||||||
, public ITextStoreACPSink
|
, public ITextStoreACPSink
|
||||||
, public ITextStoreACPServices
|
, public ITextStoreACPServices
|
||||||
|
@ -412,15 +411,13 @@ STDMETHODIMP CContext::GetSelection(
|
||||||
hr = m_pITextStoreACP->GetSelection(ulIndex + i, 1, &acps, &fetched);
|
hr = m_pITextStoreACP->GetSelection(ulIndex + i, 1, &acps, &fetched);
|
||||||
if (hr == TS_E_NOLOCK)
|
if (hr == TS_E_NOLOCK)
|
||||||
return TF_E_NOLOCK;
|
return TF_E_NOLOCK;
|
||||||
else if (SUCCEEDED(hr))
|
else if (FAILED(hr))
|
||||||
{
|
|
||||||
pSelection[totalFetched].style.ase = (TfActiveSelEnd)acps.style.ase;
|
|
||||||
pSelection[totalFetched].style.fInterimChar = acps.style.fInterimChar;
|
|
||||||
Range_Constructor(this, m_pITextStoreACP, cookie->lockType, acps.acpStart, acps.acpEnd, &pSelection[totalFetched].range);
|
|
||||||
totalFetched++;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
pSelection[totalFetched].style.ase = (TfActiveSelEnd)acps.style.ase;
|
||||||
|
pSelection[totalFetched].style.fInterimChar = acps.style.fInterimChar;
|
||||||
|
Range_Constructor(this, m_pITextStoreACP, cookie->lockType, acps.acpStart, acps.acpEnd, &pSelection[totalFetched].range);
|
||||||
|
totalFetched++;
|
||||||
}
|
}
|
||||||
|
|
||||||
*pcFetched = totalFetched;
|
*pcFetched = totalFetched;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue