diff options
Diffstat (limited to 'fpicker/source/win32/filepicker/comptr.hxx')
-rw-r--r-- | fpicker/source/win32/filepicker/comptr.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fpicker/source/win32/filepicker/comptr.hxx b/fpicker/source/win32/filepicker/comptr.hxx index 289179ea0254..5cc4f4d3f907 100644 --- a/fpicker/source/win32/filepicker/comptr.hxx +++ b/fpicker/source/win32/filepicker/comptr.hxx @@ -36,7 +36,7 @@ class ComPtr */ ComPtr() { - m_pInterface = NULL; + m_pInterface = nullptr; } @@ -81,7 +81,7 @@ class ComPtr HRESULT create() { - return CoCreateInstance(P_CLSID, NULL, CLSCTX_ALL, P_IID, (void**)&m_pInterface); + return CoCreateInstance(P_CLSID, nullptr, CLSCTX_ALL, P_IID, reinterpret_cast<void**>(&m_pInterface)); } @@ -170,7 +170,7 @@ class ComPtr if (m_pInterface) { m_pInterface->Release(); - m_pInterface = NULL; + m_pInterface = nullptr; } } @@ -179,12 +179,12 @@ class ComPtr template< class T_QUERYINTERFACE > HRESULT query(T_QUERYINTERFACE** pQuery) { - return m_pInterface->QueryInterface(__uuidof(T_QUERYINTERFACE), (void**)pQuery); + return m_pInterface->QueryInterface(__uuidof(T_QUERYINTERFACE), reinterpret_cast<void**>(pQuery)); } #endif - sal_Bool equals(IUnknown* pCheck) + bool equals(IUnknown* pCheck) { if ( ( ! m_pInterface ) && @@ -202,9 +202,9 @@ class ComPtr } - sal_Bool is() + bool is() { - return (m_pInterface != 0); + return (m_pInterface != nullptr); } private: |