Skip to content

Commit eed6702

Browse files
committed
ObjectBase: make INTERFACE_ID fully qualified
Support implement Diligent's class interface in other namespaces
1 parent 2d01c82 commit eed6702

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Common/interface/ObjectBase.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ namespace Diligent
5353
}
5454

5555
#define IMPLEMENT_QUERY_INTERFACE(ClassName, InterfaceID, ParentClassName) \
56-
void ClassName::QueryInterface(const INTERFACE_ID& IID, IObject** ppInterface) \
56+
void ClassName::QueryInterface(const ::Diligent::INTERFACE_ID& IID, IObject** ppInterface) \
5757
IMPLEMENT_QUERY_INTERFACE_BODY(InterfaceID, ParentClassName)
5858

5959
#define IMPLEMENT_QUERY_INTERFACE_IN_PLACE(InterfaceID, ParentClassName) \
60-
virtual void DILIGENT_CALL_TYPE QueryInterface(const INTERFACE_ID& IID, IObject** ppInterface) override \
60+
virtual void DILIGENT_CALL_TYPE QueryInterface(const ::Diligent::INTERFACE_ID& IID, IObject** ppInterface) override \
6161
IMPLEMENT_QUERY_INTERFACE_BODY(InterfaceID, ParentClassName)
6262

6363

0 commit comments

Comments
 (0)