diff options
author | MichaĆ Janiszewski <janisozaur@users.noreply.github.com> | 2018-10-31 21:30:48 +0100 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-10-31 13:30:48 -0700 |
commit | a374692390570b3efe4d4b4fe8894fd9c0b34d0f (patch) | |
tree | b4a530cb3c931c0066df13aaf0cc5a44e92f898b /src/binder | |
parent | b042303bf1139472854accc8fe444f4ed442da23 (diff) | |
download | coreclr-a374692390570b3efe4d4b4fe8894fd9c0b34d0f.tar.gz coreclr-a374692390570b3efe4d4b4fe8894fd9c0b34d0f.tar.bz2 coreclr-a374692390570b3efe4d4b4fe8894fd9c0b34d0f.zip |
Remove superfluous 'const' qualifier from trivial return types (#20652)
The 'const' used in this context has no meaning
Diffstat (limited to 'src/binder')
-rw-r--r-- | src/binder/inc/applicationcontext.hpp | 4 | ||||
-rw-r--r-- | src/binder/inc/assemblyhashtraits.hpp | 2 | ||||
-rw-r--r-- | src/binder/inc/assemblyidentitycache.hpp | 2 | ||||
-rw-r--r-- | src/binder/inc/failurecachehashtraits.hpp | 2 | ||||
-rw-r--r-- | src/binder/inc/propertyhashtraits.hpp | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/binder/inc/applicationcontext.hpp b/src/binder/inc/applicationcontext.hpp index 9c8926207c..cd1a2455e4 100644 --- a/src/binder/inc/applicationcontext.hpp +++ b/src/binder/inc/applicationcontext.hpp @@ -38,7 +38,7 @@ namespace BINDER_SPACE typedef PCWSTR key_t; static const FileNameMapEntry Null() { FileNameMapEntry e; e.m_wszFileName = nullptr; return e; } static bool IsNull(const FileNameMapEntry & e) { return e.m_wszFileName == nullptr; } - static const key_t GetKey(const FileNameMapEntry & e) + static key_t GetKey(const FileNameMapEntry & e) { key_t key; key = e.m_wszFileName; @@ -65,7 +65,7 @@ namespace BINDER_SPACE typedef PCWSTR key_t; static const SimpleNameToFileNameMapEntry Null() { SimpleNameToFileNameMapEntry e; e.m_wszSimpleName = nullptr; return e; } static bool IsNull(const SimpleNameToFileNameMapEntry & e) { return e.m_wszSimpleName == nullptr; } - static const key_t GetKey(const SimpleNameToFileNameMapEntry & e) + static key_t GetKey(const SimpleNameToFileNameMapEntry & e) { key_t key; key = e.m_wszSimpleName; diff --git a/src/binder/inc/assemblyhashtraits.hpp b/src/binder/inc/assemblyhashtraits.hpp index 285368f687..b2123967f6 100644 --- a/src/binder/inc/assemblyhashtraits.hpp +++ b/src/binder/inc/assemblyhashtraits.hpp @@ -45,7 +45,7 @@ namespace BINDER_SPACE { return pAssemblyName->Hash(dwAssemblyNameFlags); } - static const element_t Null() + static element_t Null() { return NULL; } diff --git a/src/binder/inc/assemblyidentitycache.hpp b/src/binder/inc/assemblyidentitycache.hpp index 39ad283175..f7a9439365 100644 --- a/src/binder/inc/assemblyidentitycache.hpp +++ b/src/binder/inc/assemblyidentitycache.hpp @@ -88,7 +88,7 @@ namespace BINDER_SPACE else return HashStringA(textualIdentity); } - static const element_t Null() + static element_t Null() { return NULL; } diff --git a/src/binder/inc/failurecachehashtraits.hpp b/src/binder/inc/failurecachehashtraits.hpp index 7d65544ecc..36134be530 100644 --- a/src/binder/inc/failurecachehashtraits.hpp +++ b/src/binder/inc/failurecachehashtraits.hpp @@ -73,7 +73,7 @@ namespace BINDER_SPACE { return HashCaseInsensitive(pAssemblyNameOrPath); } - static const element_t Null() + static element_t Null() { return NULL; } diff --git a/src/binder/inc/propertyhashtraits.hpp b/src/binder/inc/propertyhashtraits.hpp index c35d5f0dfe..40549e7d4e 100644 --- a/src/binder/inc/propertyhashtraits.hpp +++ b/src/binder/inc/propertyhashtraits.hpp @@ -80,7 +80,7 @@ namespace BINDER_SPACE { return pPropertyName->Hash(); } - static const element_t Null() + static element_t Null() { return NULL; } |