make the internal InterfaceId constructor explicit

This commit is contained in:
Mathieu Lacage
2008-01-03 08:42:04 +01:00
parent 676307027c
commit 6150ba4860
2 changed files with 2 additions and 2 deletions

View File

@@ -273,7 +273,7 @@ InterfaceId::GetRegisteredN (void)
InterfaceId
InterfaceId::GetRegistered (uint32_t i)
{
return Singleton<IidManager>::Get ()->GetRegistered (i);
return InterfaceId (Singleton<IidManager>::Get ()->GetRegistered (i));
}
InterfaceId

View File

@@ -103,7 +103,7 @@ private:
friend bool operator == (InterfaceId a, InterfaceId b);
friend bool operator != (InterfaceId a, InterfaceId b);
InterfaceId (uint16_t iid);
explicit InterfaceId (uint16_t iid);
void DoAddConstructor (CallbackBase callback, uint32_t nArguments);
CallbackBase LookupConstructor (uint32_t nArguments);