From 9475b11045089c9bc9773b16f7eb84f843db70c4 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 1 Apr 2021 18:59:24 -0400 Subject: Associating GUID (or UUID) with types (#1776) * #include an absolute path didn't work - because paths were taken to always be relative. * Add mechanism to embed guid inside of type. --- source/core/slang-deflate-compression-system.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/core/slang-deflate-compression-system.cpp') diff --git a/source/core/slang-deflate-compression-system.cpp b/source/core/slang-deflate-compression-system.cpp index a316be122..dab6654f7 100644 --- a/source/core/slang-deflate-compression-system.cpp +++ b/source/core/slang-deflate-compression-system.cpp @@ -17,8 +17,6 @@ namespace Slang { // Allocate static const storage for the various interface IDs that the Slang API needs to expose -static const Guid IID_ISlangUnknown = SLANG_UUID_ISlangUnknown; -static const Guid IID_ICompressionSystem = SLANG_UUID_ICompressionSystem; class DeflateCompressionSystemImpl : public RefObject, public ICompressionSystem { @@ -42,7 +40,7 @@ protected: ICompressionSystem* DeflateCompressionSystemImpl::getInterface(const Guid& guid) { - return (guid == IID_ISlangUnknown || guid == IID_ICompressionSystem) ? static_cast(this) : nullptr; + return (guid == ISlangUnknown::getTypeGuid() || guid == ICompressionSystem::getTypeGuid()) ? static_cast(this) : nullptr; } SlangResult DeflateCompressionSystemImpl::compress(const CompressionStyle* style, const void* src, size_t srcSizeInBytes, ISlangBlob** outBlob) -- cgit v1.2.3