From ec80352ea0d2d1e6a9a99ca1248a7d12605cacc6 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 13 May 2009 10:30:30 +0200 Subject: [PATCH] msctf/tests: Make some functions static. --- dlls/msctf/tests/inputprocessor.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/msctf/tests/inputprocessor.c b/dlls/msctf/tests/inputprocessor.c index 2b53bcc684..a3070fc41f 100644 --- a/dlls/msctf/tests/inputprocessor.c +++ b/dlls/msctf/tests/inputprocessor.c @@ -310,7 +310,7 @@ static const ITextStoreACPVtbl TextStoreACP_TextStoreACPVtbl = TextStoreACP_GetWnd }; -HRESULT TextStoreACP_Constructor(IUnknown **ppOut) +static HRESULT TextStoreACP_Constructor(IUnknown **ppOut) { TextStoreACP *This; @@ -431,7 +431,7 @@ static const ITfThreadMgrEventSinkVtbl ThreadMgrEventSink_ThreadMgrEventSinkVtbl ThreadMgrEventSink_OnPopContext }; -HRESULT ThreadMgrEventSink_Constructor(IUnknown **ppOut) +static HRESULT ThreadMgrEventSink_Constructor(IUnknown **ppOut) { ThreadMgrEventSink *This; @@ -618,7 +618,7 @@ static const ITfTextInputProcessorVtbl TextService_TextInputProcessorVtbl= TextService_Deactivate }; -HRESULT TextService_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut) +static HRESULT TextService_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut) { TextService *This; if (pUnkOuter) @@ -635,13 +635,13 @@ HRESULT TextService_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut) return S_OK; } -HRESULT RegisterTextService(REFCLSID rclsid) +static HRESULT RegisterTextService(REFCLSID rclsid) { ClassFactory_Constructor( TextService_Constructor ,(LPVOID*)&cf); return CoRegisterClassObject(rclsid, (IUnknown*) cf, CLSCTX_INPROC_SERVER, REGCLS_MULTIPLEUSE, ®id); } -HRESULT UnregisterTextService() +static HRESULT UnregisterTextService() { return CoRevokeClassObject(regid); } @@ -961,7 +961,7 @@ static const ITfKeyEventSinkVtbl KeyEventSink_KeyEventSinkVtbl = KeyEventSink_OnPreservedKey }; -HRESULT KeyEventSink_Constructor(ITfKeyEventSink **ppOut) +static HRESULT KeyEventSink_Constructor(ITfKeyEventSink **ppOut) { KeyEventSink *This; @@ -983,7 +983,7 @@ static void test_KeystrokeMgr(void) HRESULT hr; TF_PRESERVEDKEY tfpk; BOOL preserved; - ITfKeyEventSink *sink; + ITfKeyEventSink *sink = NULL; KeyEventSink_Constructor(&sink);