Skip to content

Commit 62963ae

Browse files
committed
Issue #39:
Renamed glog_utils.h to GlogUtils.h Renamed win32_utils.h to Win32Utils.h Renamed win32_registry.h to Win32Registry.h
1 parent 5f0f88f commit 62963ae

14 files changed

+105
-105
lines changed

src/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ add_library(shellext SHARED
8585
${CMAKE_SOURCE_DIR}/src/version.rc.in
8686
BitmapCache.cpp
8787
BitmapCache.h
88-
glog_utils.cpp
89-
glog_utils.h
88+
GlogUtils.cpp
89+
GlogUtils.h
9090
shellext.cpp
9191
shellext.h
9292
shellext.def
93-
win32_utils.cpp
94-
win32_utils.h
95-
win32_registry.cpp
96-
win32_registry.h
93+
Win32Utils.cpp
94+
Win32Utils.h
95+
Win32Registry.cpp
96+
Win32Registry.h
9797
)
9898

9999
# Group external files as filter for Visual Studio
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "glog_utils.h"
1+
#include "GlogUtils.h"
22
#include "Platform.h"
33

44
#define WIN32_LEAN_AND_MEAN 1
File renamed without changes.

src/Icon.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "shellanything/Icon.h"
2626
#include "PropertyManager.h"
27-
#include "win32_registry.h"
27+
#include "Win32Registry.h"
2828

2929
#pragma warning( push )
3030
#pragma warning( disable: 4355 ) // glog\install_dir\include\glog/logging.h(1167): warning C4355: 'this' : used in base member initializer list
@@ -75,8 +75,8 @@ namespace shellanything
7575
if (!file_extension.empty())
7676
{
7777
//try to find the path to the icon module for the given file extension.
78-
win32_registry::REGISTRY_ICON resolved_icon = win32_registry::GetFileTypeIcon(file_extension.c_str());
79-
if (!resolved_icon.path.empty() && resolved_icon.index != win32_registry::INVALID_ICON_INDEX)
78+
Win32Registry::REGISTRY_ICON resolved_icon = Win32Registry::GetFileTypeIcon(file_extension.c_str());
79+
if (!resolved_icon.path.empty() && resolved_icon.index != Win32Registry::INVALID_ICON_INDEX)
8080
{
8181
//found the icon for the file extension
8282
//replace this menu's icon with the new information
@@ -89,7 +89,7 @@ namespace shellanything
8989
{
9090
//failed to find a valid icon.
9191
//using the default "unknown" icon
92-
win32_registry::REGISTRY_ICON unknown_file_icon = win32_registry::GetUnknownFileTypeIcon();
92+
Win32Registry::REGISTRY_ICON unknown_file_icon = Win32Registry::GetUnknownFileTypeIcon();
9393
LOG(WARNING) << "Failed to find icon for file extension '" << file_extension << "'. Resolving icon with default icon for unknown file type '" << unknown_file_icon.path << "' with index '" << unknown_file_icon.index << "'";
9494
mPath = unknown_file_icon.path;
9595
mIndex = unknown_file_icon.index;
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* SOFTWARE.
2323
*********************************************************************************/
2424

25-
#include "win32_registry.h"
25+
#include "Win32Registry.h"
2626

2727
//#define WIN32_LEAN_AND_MEAN 1
2828
#include <windows.h>
@@ -40,7 +40,7 @@
4040
#include <assert.h>
4141
#include <algorithm>
4242

43-
namespace win32_registry
43+
namespace Win32Registry
4444
{
4545
bool IsIconEquals(const REGISTRY_ICON & a, const REGISTRY_ICON & b)
4646
{
@@ -257,7 +257,7 @@ namespace win32_registry
257257
//set default value
258258
if (iDefaultValue)
259259
{
260-
if (!win32_registry::SetValue(iKeyPath, "", iDefaultValue))
260+
if (!Win32Registry::SetValue(iKeyPath, "", iDefaultValue))
261261
return false;
262262
}
263263

@@ -955,7 +955,7 @@ namespace win32_registry
955955
entries.push_back(entry);
956956
}
957957

958-
//process root key acronyms for win32_registry functions
958+
//process root key acronyms for Win32Registry functions
959959
else if (line == "HKCR")
960960
previous_key_name = "HKEY_CLASSES_ROOT";
961961
else if (line == "HKCU")
@@ -1054,7 +1054,7 @@ namespace win32_registry
10541054

10551055
for(size_t i=0; i<entries.size(); i++)
10561056
{
1057-
const win32_registry::RGS_ENTRY & entry = entries[i];
1057+
const Win32Registry::RGS_ENTRY & entry = entries[i];
10581058
if (entry.isKey)
10591059
{
10601060
//std::string debug_message;
@@ -1104,7 +1104,7 @@ namespace win32_registry
11041104

11051105
for(size_t i=0; i<entries.size(); i++)
11061106
{
1107-
const win32_registry::RGS_ENTRY & entry = entries[i];
1107+
const Win32Registry::RGS_ENTRY & entry = entries[i];
11081108
if (entry.isNoRemove)
11091109
continue;
11101110

@@ -1150,4 +1150,4 @@ namespace win32_registry
11501150
return icon;
11511151
}
11521152

1153-
} //namespace win32_registry
1153+
} //namespace Win32Registry
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <vector>
3030
#include <string>
3131

32-
namespace win32_registry
32+
namespace Win32Registry
3333
{
3434
enum REGISTRY_TYPE
3535
{
@@ -90,6 +90,6 @@ namespace win32_registry
9090
REGISTRY_ICON GetFileTypeIcon(const char * iFileExtention);
9191
REGISTRY_ICON GetUnknownFileTypeIcon();
9292

93-
} //namespace win32_registry
93+
} //namespace Win32Registry
9494

9595
#endif //WIN32_REGISTRY_H
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//#define WIN32_LEAN_AND_MEAN 1
2-
#include "win32_utils.h"
2+
#include "Win32Utils.h"
33
#undef GetEnvironmentVariable
44
#undef DeleteFile
55
#undef CreateDirectory
@@ -11,7 +11,7 @@
1111
#include <string>
1212
#include <assert.h>
1313

14-
namespace win32_utils
14+
namespace Win32Utils
1515
{
1616
static const size_t BITS_PER_PIXEL = 32;
1717
static const size_t BYTES_PER_PIXEL = BITS_PER_PIXEL/8;
@@ -556,4 +556,4 @@ namespace win32_utils
556556
return output;
557557
}
558558

559-
} //namespace win32_utils
559+
} //namespace Win32Utils
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <Windows.h>
2929
#include <string>
3030

31-
namespace win32_utils
31+
namespace Win32Utils
3232
{
3333
SIZE GetIconSize(HICON hIcon);
3434
HICON GetBestIconForMenu(HICON hIconLarge, HICON hIconSmall);
@@ -42,6 +42,6 @@ namespace win32_utils
4242
BOOL IsFullyTransparent(const std::string & buffer);
4343
std::string GetMenuItemDetails(HMENU hMenu, UINT pos);
4444
std::string GetMenuTree(HMENU hMenu, int indent);
45-
} //namespace win32_utils
45+
} //namespace Win32Utils
4646

4747
#endif //WIN32_UTILS_H

0 commit comments

Comments
 (0)