X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbinder%2Finc%2Fapplicationcontext.hpp;h=f315b32c0d07854e6422dffc3e27870858c5c674;hb=5cd177b448ff1c61c7899647f729e44fef78f142;hp=4c256771eb46a1cc6eaf32b8120f6b37bae04528;hpb=587cbb77129c31e93c5b5ccbe03bb6c41dc5821c;p=platform%2Fupstream%2Fcoreclr.git diff --git a/src/binder/inc/applicationcontext.hpp b/src/binder/inc/applicationcontext.hpp index 4c25677..f315b32 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,14 +65,18 @@ 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; return key; } - static count_t Hash(const key_t &str) { return HashiString(str); } - static BOOL Equals(const key_t &lhs, const key_t &rhs) { LIMITED_METHOD_CONTRACT; return (_wcsicmp(lhs, rhs) == 0); } + static count_t Hash(const key_t &str) + { + SString ssKey(SString::Literal, str); + return ssKey.HashCaseInsensitive(); + } + static BOOL Equals(const key_t &lhs, const key_t &rhs) { LIMITED_METHOD_CONTRACT; return (SString::_wcsicmp(lhs, rhs) == 0); } void OnDestructPerEntryCleanupAction(const SimpleNameToFileNameMapEntry & e) { @@ -173,21 +177,6 @@ namespace BINDER_SPACE SimpleNameToFileNameMap * m_pTrustedPlatformAssemblyMap; TpaFileNameHash * m_pFileNameHash; - -#if defined(FEATURE_HOST_ASSEMBLY_RESOLVER) - bool m_fCanExplicitlyBindToNativeImages; -public: - inline void SetExplicitBindToNativeImages(bool fCanExplicitlyBindToNativeImages) - { - m_fCanExplicitlyBindToNativeImages = fCanExplicitlyBindToNativeImages; - } - - inline bool CanExplicitlyBindToNativeImages() - { - return m_fCanExplicitlyBindToNativeImages; - } -protected: -#endif // defined(FEATURE_HOST_ASSEMBLY_RESOLVER) }; #include "applicationcontext.inl"