summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-11 13:41:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-11 13:42:42 +0100
commit556f1eab63555019865803c055454b7b69c2d75b (patch)
treed51d6db8b1e8cda466bc69759a096b51ab9fc946 /shell
parentb58b241f3a42255cce56ff14b5ce8fc7245d11ca (diff)
loplugin:externvar (clang-cl)
Change-Id: I9efdd5136fdf793e0075b91fcfae4fed42050109
Diffstat (limited to 'shell')
-rw-r--r--shell/inc/shlxthdl.hxx2
-rw-r--r--shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx4
-rw-r--r--shell/source/win32/shlxthandler/shlxthdl.cxx24
-rw-r--r--shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx2
-rw-r--r--shell/source/win32/simplemail/senddoc.cxx2
5 files changed, 17 insertions, 17 deletions
diff --git a/shell/inc/shlxthdl.hxx b/shell/inc/shlxthdl.hxx
index b972c57fa1c2..3591ca9cc0cf 100644
--- a/shell/inc/shlxthdl.hxx
+++ b/shell/inc/shlxthdl.hxx
@@ -44,6 +44,8 @@ const CLSID CLSID_PROPERTYSHEET_HANDLER =
const CLSID CLSID_THUMBVIEWER_HANDLER =
{ 0x3b092f0c, 0x7696, 0x40e3, { 0xa8, 0xf, 0x68, 0xd7, 0x4d, 0xa8, 0x42, 0x10 } };
+extern HINSTANCE g_hModule;
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx b/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx
index edb7ab25910c..1dd38a0973ea 100644
--- a/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx
+++ b/shell/source/win32/shlxthandler/prophdl/propertyhdl.cxx
@@ -37,7 +37,7 @@
// Module global
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
struct PROPERTYMAP
@@ -56,7 +56,7 @@ const PROPERTYMAP g_rgPROPERTYMAP[] =
{ 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 ) :
diff --git a/shell/source/win32/shlxthandler/shlxthdl.cxx b/shell/source/win32/shlxthandler/shlxthdl.cxx
index cba73c410145..24833812d821 100644
--- a/shell/source/win32/shlxthandler/shlxthdl.cxx
+++ b/shell/source/win32/shlxthandler/shlxthdl.cxx
@@ -37,18 +37,18 @@ HINSTANCE g_hModule = nullptr;
namespace /* private */
{
- const char* GUID_PLACEHOLDER = "{GUID}";
- const char* EXTENSION_PLACEHOLDER = "{EXT}";
- const char* FORWARDKEY_PLACEHOLDER = "{FWDKEY}";
-
- const char* CLSID_ENTRY = "CLSID\\{GUID}\\InProcServer32";
- const char* SHELLEX_IID_ENTRY = "{EXT}\\shellex\\{GUID}";
- const char* SHELLEX_ENTRY = "{EXT}\\shellex";
- const char* FORWARD_PROPSHEET_MYPROPSHEET_ENTRY = "{FWDKEY}\\shellex\\PropertySheetHandlers\\MyPropSheet1";
- const char* FORWARD_PROPSHEET_ENTRY = "{FWDKEY}\\shellex\\PropertySheetHandlers";
- const char* FORWARD_SHELLEX_ENTRY = "{FWDKEY}\\shellex";
-
- const char* SHELL_EXTENSION_APPROVED_KEY_NAME = "Software\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved";
+ const char* const GUID_PLACEHOLDER = "{GUID}";
+ const char* const EXTENSION_PLACEHOLDER = "{EXT}";
+ const char* const FORWARDKEY_PLACEHOLDER = "{FWDKEY}";
+
+ const char* const CLSID_ENTRY = "CLSID\\{GUID}\\InProcServer32";
+ const char* const SHELLEX_IID_ENTRY = "{EXT}\\shellex\\{GUID}";
+ const char* const SHELLEX_ENTRY = "{EXT}\\shellex";
+ const char* const FORWARD_PROPSHEET_MYPROPSHEET_ENTRY = "{FWDKEY}\\shellex\\PropertySheetHandlers\\MyPropSheet1";
+ const char* const FORWARD_PROPSHEET_ENTRY = "{FWDKEY}\\shellex\\PropertySheetHandlers";
+ const char* const FORWARD_SHELLEX_ENTRY = "{FWDKEY}\\shellex";
+
+ const char* const SHELL_EXTENSION_APPROVED_KEY_NAME = "Software\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved";
// "String Placeholder" ->
diff --git a/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx b/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx
index f7ddd6103346..740ae5708c93 100644
--- a/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx
+++ b/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx
@@ -48,8 +48,6 @@
#endif
#include <memory>
-extern HINSTANCE g_hModule;
-
namespace internal
{
/* The signet.png used for thumbnails of signed documents
diff --git a/shell/source/win32/simplemail/senddoc.cxx b/shell/source/win32/simplemail/senddoc.cxx
index cb25d7c57e0d..1b0327dc18c8 100644
--- a/shell/source/win32/simplemail/senddoc.cxx
+++ b/shell/source/win32/simplemail/senddoc.cxx
@@ -170,7 +170,7 @@ void initMapiMessage(
pMapiMessage->nFileCount = aMapiAttachmentList.size();
}
-const char* KnownParameter[] =
+const char* const KnownParameter[] =
{
"--to",
"--cc",