Kaydet (Commit) 556f1eab authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:externvar (clang-cl)

Change-Id: I9efdd5136fdf793e0075b91fcfae4fed42050109
üst b58b241f
...@@ -44,6 +44,8 @@ const CLSID CLSID_PROPERTYSHEET_HANDLER = ...@@ -44,6 +44,8 @@ const CLSID CLSID_PROPERTYSHEET_HANDLER =
const CLSID CLSID_THUMBVIEWER_HANDLER = const CLSID CLSID_THUMBVIEWER_HANDLER =
{ 0x3b092f0c, 0x7696, 0x40e3, { 0xa8, 0xf, 0x68, 0xd7, 0x4d, 0xa8, 0x42, 0x10 } }; { 0x3b092f0c, 0x7696, 0x40e3, { 0xa8, 0xf, 0x68, 0xd7, 0x4d, 0xa8, 0x42, 0x10 } };
extern HINSTANCE g_hModule;
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
// Module global // Module global
long g_DllRefCnt = 0; long g_DllRefCnt = 0;
HINSTANCE g_hModule = nullptr; static HINSTANCE g_hModule = nullptr;
// Map of property keys to the locations of their value(s) in the .??? XML schema // Map of property keys to the locations of their value(s) in the .??? XML schema
struct PROPERTYMAP struct PROPERTYMAP
...@@ -56,7 +56,7 @@ const PROPERTYMAP g_rgPROPERTYMAP[] = ...@@ -56,7 +56,7 @@ const PROPERTYMAP g_rgPROPERTYMAP[] =
{ PKEY_Comment, L"LibreOffice", L"Comments" }, { PKEY_Comment, L"LibreOffice", L"Comments" },
}; };
size_t gPropertyMapTableSize = SAL_N_ELEMENTS(g_rgPROPERTYMAP); size_t const gPropertyMapTableSize = SAL_N_ELEMENTS(g_rgPROPERTYMAP);
CPropertyHdl::CPropertyHdl( long nRefCnt ) : CPropertyHdl::CPropertyHdl( long nRefCnt ) :
......
...@@ -37,18 +37,18 @@ HINSTANCE g_hModule = nullptr; ...@@ -37,18 +37,18 @@ HINSTANCE g_hModule = nullptr;
namespace /* private */ namespace /* private */
{ {
const char* GUID_PLACEHOLDER = "{GUID}"; const char* const GUID_PLACEHOLDER = "{GUID}";
const char* EXTENSION_PLACEHOLDER = "{EXT}"; const char* const EXTENSION_PLACEHOLDER = "{EXT}";
const char* FORWARDKEY_PLACEHOLDER = "{FWDKEY}"; const char* const FORWARDKEY_PLACEHOLDER = "{FWDKEY}";
const char* CLSID_ENTRY = "CLSID\\{GUID}\\InProcServer32"; const char* const CLSID_ENTRY = "CLSID\\{GUID}\\InProcServer32";
const char* SHELLEX_IID_ENTRY = "{EXT}\\shellex\\{GUID}"; const char* const SHELLEX_IID_ENTRY = "{EXT}\\shellex\\{GUID}";
const char* SHELLEX_ENTRY = "{EXT}\\shellex"; const char* const SHELLEX_ENTRY = "{EXT}\\shellex";
const char* FORWARD_PROPSHEET_MYPROPSHEET_ENTRY = "{FWDKEY}\\shellex\\PropertySheetHandlers\\MyPropSheet1"; const char* const FORWARD_PROPSHEET_MYPROPSHEET_ENTRY = "{FWDKEY}\\shellex\\PropertySheetHandlers\\MyPropSheet1";
const char* FORWARD_PROPSHEET_ENTRY = "{FWDKEY}\\shellex\\PropertySheetHandlers"; const char* const FORWARD_PROPSHEET_ENTRY = "{FWDKEY}\\shellex\\PropertySheetHandlers";
const char* FORWARD_SHELLEX_ENTRY = "{FWDKEY}\\shellex"; const char* const FORWARD_SHELLEX_ENTRY = "{FWDKEY}\\shellex";
const char* SHELL_EXTENSION_APPROVED_KEY_NAME = "Software\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved"; const char* const SHELL_EXTENSION_APPROVED_KEY_NAME = "Software\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved";
// "String Placeholder" -> // "String Placeholder" ->
......
...@@ -48,8 +48,6 @@ ...@@ -48,8 +48,6 @@
#endif #endif
#include <memory> #include <memory>
extern HINSTANCE g_hModule;
namespace internal namespace internal
{ {
/* The signet.png used for thumbnails of signed documents /* The signet.png used for thumbnails of signed documents
......
...@@ -170,7 +170,7 @@ void initMapiMessage( ...@@ -170,7 +170,7 @@ void initMapiMessage(
pMapiMessage->nFileCount = aMapiAttachmentList.size(); pMapiMessage->nFileCount = aMapiAttachmentList.size();
} }
const char* KnownParameter[] = const char* const KnownParameter[] =
{ {
"--to", "--to",
"--cc", "--cc",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment