summaryrefslogtreecommitdiff
path: root/source/core/slang-lz4-compression-system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-lz4-compression-system.cpp')
-rw-r--r--source/core/slang-lz4-compression-system.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/core/slang-lz4-compression-system.cpp b/source/core/slang-lz4-compression-system.cpp
index fa5c5f5ab..fd360ce2e 100644
--- a/source/core/slang-lz4-compression-system.cpp
+++ b/source/core/slang-lz4-compression-system.cpp
@@ -11,8 +11,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 LZ4CompressionSystemImpl : public RefObject, public ICompressionSystem
{
@@ -35,7 +33,7 @@ protected:
ICompressionSystem* LZ4CompressionSystemImpl::getInterface(const Guid& guid)
{
- return (guid == IID_ISlangUnknown || guid == IID_ICompressionSystem) ? static_cast<ICompressionSystem*>(this) : nullptr;
+ return (guid == ISlangUnknown::getTypeGuid() || guid == ICompressionSystem::getTypeGuid()) ? static_cast<ICompressionSystem*>(this) : nullptr;
}
SlangResult LZ4CompressionSystemImpl::compress(const CompressionStyle* style, const void* src, size_t srcSizeInBytes, ISlangBlob** outBlob)