Skip to content

Commit 7402fd1

Browse files
Merge pull request #42 from intel-innersource/infra/coverity-fixes
Infra/coverity fixes
2 parents 63146ec + c8f82a4 commit 7402fd1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

IntelPresentMon/CommonUtilities/cli/CliFramework.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ namespace pmon::util::cli
2727
ConvertedNarrowOptions_(int argc, const wchar_t* const* wargv);
2828
~ConvertedNarrowOptions_();
2929
const char* const* GetRawPointerArray() const;
30+
31+
ConvertedNarrowOptions_(const ConvertedNarrowOptions_&) = delete;
32+
ConvertedNarrowOptions_ & operator=(const ConvertedNarrowOptions_&) = delete;
33+
ConvertedNarrowOptions_(ConvertedNarrowOptions_&&) = delete;
34+
ConvertedNarrowOptions_ & operator=(ConvertedNarrowOptions_&&) = delete;
35+
3036
private:
3137
std::vector<char*> stringPointerArray;
3238
};

IntelPresentMon/PresentMonMiddleware/source/FrameEventQuery.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ struct PM_FRAME_QUERY
4040
void GatherToBlob(const Context& ctx, uint8_t* pDestBlob) const;
4141
size_t GetBlobSize() const;
4242
std::optional<uint32_t> GetReferencedDevice() const;
43+
44+
PM_FRAME_QUERY(const PM_FRAME_QUERY&) = delete;
45+
PM_FRAME_QUERY& operator=(const PM_FRAME_QUERY&) = delete;
46+
PM_FRAME_QUERY(PM_FRAME_QUERY&&) = delete;
47+
PM_FRAME_QUERY& operator=(PM_FRAME_QUERY&&) = delete;
48+
4349
private:
4450
// functions
4551
std::unique_ptr<pmon::mid::GatherCommand_> MapQueryElementToGatherCommand_(const PM_QUERY_ELEMENT& q, size_t pos);

0 commit comments

Comments
 (0)