Author: rnaumann
Date: Mon May 8 17:46:55 2017
New Revision: 74505
URL:
http://svn.reactos.org/svn/reactos?rev=74505&view=rev
Log:
[EXPLORER] Some style suggestions by Mark Jansen. Thanks
Modified:
trunk/reactos/base/shell/explorer/settings.cpp
Modified: trunk/reactos/base/shell/explorer/settings.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/settin…
==============================================================================
--- trunk/reactos/base/shell/explorer/settings.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/settings.cpp [iso-8859-1] Mon May 8 17:46:55 2017
@@ -29,17 +29,17 @@
{
DWORD dwValue = NULL;
- LoadSettingDword(szAdvancedSettingsKey, TEXT("TaskbarSizeMove"), dwValue);
- TaskBarSettings.bLock = (dwValue != 0) ? FALSE : TRUE;
+ LoadSettingDword(szAdvancedSettingsKey, L"TaskbarSizeMove", dwValue);
+ TaskBarSettings.bLock = (dwValue == 0);
- LoadSettingDword(szAdvancedSettingsKey, TEXT("ShowSeconds"), dwValue);
- TaskBarSettings.bShowSeconds = (dwValue != 0) ? TRUE : FALSE;
+ LoadSettingDword(szAdvancedSettingsKey, L"ShowSeconds", dwValue);
+ TaskBarSettings.bShowSeconds = (dwValue != 0);
- LoadSettingDword(szSettingsKey, TEXT("EnableAutotray"), dwValue);
- TaskBarSettings.bHideInactiveIcons = (dwValue != 0) ? TRUE : FALSE;
+ LoadSettingDword(szSettingsKey, L"EnableAutotray", dwValue);
+ TaskBarSettings.bHideInactiveIcons = (dwValue != 0);
- LoadSettingDword(szAdvancedSettingsKey, TEXT("TaskbarGlomming"), dwValue);
- TaskBarSettings.bGroupButtons = (dwValue != 0) ? TRUE : FALSE;
+ LoadSettingDword(szAdvancedSettingsKey, L"TaskbarGlomming", dwValue);
+ TaskBarSettings.bGroupButtons = (dwValue != 0);
TaskBarSettings.bShowQuickLaunch = TRUE; //FIXME: Where is this stored, and how?
@@ -53,10 +53,10 @@
VOID
SaveTaskBarSettings(VOID)
{
- SaveSettingDword(szAdvancedSettingsKey, TEXT("TaskbarSizeMove"),
TaskBarSettings.bLock);
- SaveSettingDword(szAdvancedSettingsKey, TEXT("ShowSeconds"),
TaskBarSettings.bShowSeconds);
- SaveSettingDword(szSettingsKey, TEXT("EnableAutotray"),
TaskBarSettings.bHideInactiveIcons);
- SaveSettingDword(szAdvancedSettingsKey, TEXT("TaskbarGlomming"),
TaskBarSettings.bGroupButtons);
+ SaveSettingDword(szAdvancedSettingsKey, L"TaskbarSizeMove",
TaskBarSettings.bLock);
+ SaveSettingDword(szAdvancedSettingsKey, L"ShowSeconds",
TaskBarSettings.bShowSeconds);
+ SaveSettingDword(szSettingsKey, L"EnableAutotray",
TaskBarSettings.bHideInactiveIcons);
+ SaveSettingDword(szAdvancedSettingsKey, L"TaskbarGlomming",
TaskBarSettings.bGroupButtons);
/* FIXME: Show Clock, AutoHide and Always on top are stored in the stuckrects2 key
but are not written to it with a click on apply. How is this done instead?
AutoHide writes something to HKEY_CURRENT_USER\Software\Microsoft\Internet
Explorer\Desktop\Components\0 figure out what and why */