Template Function SafeSet

Function Documentation

template<typename Type>
void SafeSet(Type **currentObject, Type *newObject)

Sets a new COM object, releasing the old one.

Template Parameters
  • Type: - The type of the object.

Parameters
  • currentObject: - The pointer to the pointer of the current object.

  • newObject: - The pointer to set to the new object.