From 43f16b1c6c5c698913b609ae8e448d8db89c5bc0 Mon Sep 17 00:00:00 2001 From: David Hampton Date: Tue, 3 Jan 2023 12:53:42 -0500 Subject: [PATCH] cppcheck: Disable warning for ImageProperties assignment operator. Disable this warning because the variable is question is always assigned in a function that is called by the assignment operator function. --- mythtv/libs/libmythui/mythuiimage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mythtv/libs/libmythui/mythuiimage.cpp b/mythtv/libs/libmythui/mythuiimage.cpp index a7c8cfed4d5..6aec70ed670 100644 --- a/mythtv/libs/libmythui/mythuiimage.cpp +++ b/mythtv/libs/libmythui/mythuiimage.cpp @@ -60,6 +60,9 @@ ImageProperties::~ImageProperties() m_maskImage->DecrRef(); } +// The m_maskImage field is assigned in the call to SetMaskImage(). +// +// cppcheck-suppress operatorEqVarError void ImageProperties::Copy(const ImageProperties &other) { m_filename = other.m_filename;