annotate src/VisVim/DSAddIn.h @ 28871:18604231a1d1 v8.2.4958

patch 8.2.4958: a couple conditions are always true Commit: https://github.com/vim/vim/commit/dd41037552c1be3548d2ce34bb1c889f14edb553 Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Sun May 15 13:59:11 2022 +0100 patch 8.2.4958: a couple conditions are always true Problem: A couple conditions are always true. Solution: Remove the conditions. (Goc Dundar, closes https://github.com/vim/vim/issues/10428)
author Bram Moolenaar <Bram@vim.org>
date Sun, 15 May 2022 15:00:02 +0200
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 // DSAddIn.h : header file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 //
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 #if !defined(AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED_)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 #define AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED_
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 #include "commands.h"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 // {4F9E01C0-406B-11d2-8006-00001C405077}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 DEFINE_GUID (CLSID_DSAddIn,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 0x4f9e01c0, 0x406b, 0x11d2, 0x80, 0x6, 0x0, 0x0, 0x1c, 0x40, 0x50, 0x77);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 /////////////////////////////////////////////////////////////////////////////
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 // CDSAddIn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 class CDSAddIn :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 public IDSAddIn,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 public CComObjectRoot,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 public CComCoClass < CDSAddIn,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 &CLSID_DSAddIn >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 public:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 DECLARE_REGISTRY (CDSAddIn, "VisVim.DSAddIn.1",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 "VisVim Developer Studio Add-in", IDS_VISVIM_LONGNAME,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 THREADFLAGS_BOTH)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 CDSAddIn ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 BEGIN_COM_MAP (CDSAddIn)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 COM_INTERFACE_ENTRY (IDSAddIn)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 END_COM_MAP ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 DECLARE_NOT_AGGREGATABLE (CDSAddIn)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 // IDSAddIns
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 public:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 STDMETHOD (OnConnection) (THIS_ IApplication * pApp, VARIANT_BOOL bFirstTime,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 long dwCookie, VARIANT_BOOL * OnConnection);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 STDMETHOD (OnDisconnection) (THIS_ VARIANT_BOOL bLastTime);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 bool AddCommand (IApplication* pApp, char* MethodName, char* CmdName,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 UINT StrResId, UINT GlyphIndex, VARIANT_BOOL bFirstTime);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 CCommandsObj * m_pCommands;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 DWORD m_dwCookie;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 //{{AFX_INSERT_LOCATION}}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 #endif // !defined(AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED)