summaryrefslogtreecommitdiffstats
path: root/source/core/slang-castable.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-29 14:49:26 +0800
committerGitHub <noreply@github.com>2024-10-29 14:49:26 +0800
commitf65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch)
treeea1d61342cd29368e19135000ec2948813096205 /source/core/slang-castable.cpp
parenta729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff)
format
* format * Minor test fixes * enable checking cpp format in ci
Diffstat (limited to 'source/core/slang-castable.cpp')
-rw-r--r--source/core/slang-castable.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/core/slang-castable.cpp b/source/core/slang-castable.cpp
index f3c6541dd..ece87fe2b 100644
--- a/source/core/slang-castable.cpp
+++ b/source/core/slang-castable.cpp
@@ -1,11 +1,12 @@
// slang-castable.cpp
#include "slang-castable.h"
-namespace Slang {
+namespace Slang
+{
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! CastableUtil !!!!!!!!!!!!!!!!!!!!!!!!!!! */
-/* static */ComPtr<ICastable> CastableUtil::getCastable(ISlangUnknown* unk)
+/* static */ ComPtr<ICastable> CastableUtil::getCastable(ISlangUnknown* unk)
{
SLANG_ASSERT(unk);
ComPtr<ICastable> castable;
@@ -52,8 +53,7 @@ void* UnknownCastableAdapter::castAs(const Guid& guid)
void* UnknownCastableAdapter::getInterface(const Guid& guid)
{
- if (guid == ISlangUnknown::getTypeGuid() ||
- guid == ICastable::getTypeGuid() ||
+ if (guid == ISlangUnknown::getTypeGuid() || guid == ICastable::getTypeGuid() ||
guid == IUnknownCastableAdapter::getTypeGuid())
{
return static_cast<IUnknownCastableAdapter*>(this);