From a7ddabcc128c882df214de984e941e32e25b53a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Mon, 22 Apr 2019 21:25:41 +0200 Subject: [PATCH] [EXPLORER] Minor cleanup/comment fixes. --- base/shell/explorer/syspager.cpp | 12 ++++++++---- base/shell/explorer/trayclock.cpp | 4 +--- base/shell/explorer/trayntfy.cpp | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/base/shell/explorer/syspager.cpp b/base/shell/explorer/syspager.cpp index 1755ebedde3..44ccff9b904 100644 --- a/base/shell/explorer/syspager.cpp +++ b/base/shell/explorer/syspager.cpp @@ -180,7 +180,8 @@ public: void Initialize(HWND hWndParent, CBalloonQueue * queue); }; -extern const WCHAR szSysPagerWndClass[]; + +static const WCHAR szSysPagerWndClass[] = L"SysPager"; class CSysPagerWnd : public CComCoClass, @@ -258,6 +259,10 @@ public: HRESULT Initialize(IN HWND hWndParent); }; +/* + * IconWatcher + */ + CIconWatcher::CIconWatcher() : m_hWatcherThread(NULL), m_WakeUpEvent(NULL), @@ -489,8 +494,8 @@ UINT WINAPI CIconWatcher::WatcherThread(_In_opt_ LPVOID lpParam) } /* -* NotifyToolbar -*/ + * BalloonQueue + */ CBalloonQueue::CBalloonQueue() : m_hwndParent(NULL), @@ -1255,7 +1260,6 @@ void CNotifyToolbar::Initialize(HWND hWndParent, CBalloonQueue * queue) /* * SysPagerWnd */ -const WCHAR szSysPagerWndClass[] = L"SysPager"; CSysPagerWnd::CSysPagerWnd() {} diff --git a/base/shell/explorer/trayclock.cpp b/base/shell/explorer/trayclock.cpp index 8c217c8c4c9..f21ba2c1106 100644 --- a/base/shell/explorer/trayclock.cpp +++ b/base/shell/explorer/trayclock.cpp @@ -39,7 +39,7 @@ const UINT ClockWndFormatsCount = _ARRAYSIZE(ClockWndFormats); #define CLOCKWND_FORMAT_COUNT ClockWndFormatsCount -extern const WCHAR szTrayClockWndClass[]; +static const WCHAR szTrayClockWndClass[] = L"TrayClockWClass"; class CTrayClockWnd : public CComCoClass, @@ -142,8 +142,6 @@ public: HRESULT Initialize(IN HWND hWndParent); }; -const WCHAR szTrayClockWndClass[] = L"TrayClockWClass"; - #define ID_TRAYCLOCK_TIMER 0 #define ID_TRAYCLOCK_TIMER_INIT 1 diff --git a/base/shell/explorer/trayntfy.cpp b/base/shell/explorer/trayntfy.cpp index 4326ca727ea..63dc2362634 100644 --- a/base/shell/explorer/trayntfy.cpp +++ b/base/shell/explorer/trayntfy.cpp @@ -25,7 +25,7 @@ * TrayNotifyWnd */ -static const WCHAR szTrayNotifyWndClass [] = TEXT("TrayNotifyWnd"); +static const WCHAR szTrayNotifyWndClass[] = L"TrayNotifyWnd"; #define TRAY_NOTIFY_WND_SPACING_X 1 #define TRAY_NOTIFY_WND_SPACING_Y 1 -- 2.17.1