summaryrefslogtreecommitdiff
path: root/fpicker/source/win32/filepicker/comptr.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/win32/filepicker/comptr.hxx')
-rw-r--r--fpicker/source/win32/filepicker/comptr.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpicker/source/win32/filepicker/comptr.hxx b/fpicker/source/win32/filepicker/comptr.hxx
index 5cc4f4d3f907..89fc85b34787 100644
--- a/fpicker/source/win32/filepicker/comptr.hxx
+++ b/fpicker/source/win32/filepicker/comptr.hxx
@@ -42,7 +42,7 @@ class ComPtr
/** initialize com ptr with given interface.
*/
- ComPtr(T_INTERFACE* pInterface)
+ explicit ComPtr(T_INTERFACE* pInterface)
{
m_pInterface = pInterface;
if (m_pInterface)
@@ -62,7 +62,7 @@ class ComPtr
/** initialize object by quering external object for the right interface.
*/
- ComPtr(IUnknown* pIUnknown)
+ explicit ComPtr(IUnknown* pIUnknown)
{
if (pIUnknown)
pIUnknown->QueryInterface(P_IID, (void**)&m_pInterface);