From 7c5f20d7563a6ab966164c0cdb48f8e1f64c4742 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 13 Feb 2020 10:55:23 +0100 Subject: [PATCH] Address code analysis warnings Signed-off-by: Simon Rozman --- include/WinStd/COM.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/WinStd/COM.h b/include/WinStd/COM.h index 623ba8f2..443bdefe 100644 --- a/include/WinStd/COM.h +++ b/include/WinStd/COM.h @@ -132,7 +132,7 @@ namespace winstd /// \sa [IUnknown::QueryInterface method](https://msdn.microsoft.com/en-us/library/windows/desktop/ms682521.aspx) /// template - inline com_obj(_Out_ _Other **other) + inline com_obj(_In_ _Other *other) { assert(other); other->QueryInterface(__uuidof(T), (void**)&m_h); @@ -145,9 +145,8 @@ namespace winstd /// \sa [IUnknown::QueryInterface method](https://msdn.microsoft.com/en-us/library/windows/desktop/ms682521.aspx) /// template - inline com_obj(_Out_ com_obj<_Other> &other) + inline com_obj(_In_ com_obj<_Other> &other) { - assert(other); other->QueryInterface(__uuidof(T), (void**)&m_h); }