mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
CPackIFW: Fix cppcheck warnings
The cppcheck warnings about uninitialised variables are likely harmless, since they are initialised in ParseResource() anyway. Fix the warnings anyway to reduce linting noise. The warning about a single argument non-explicit constructor is worth fixing in general.
This commit is contained in:
@@ -275,9 +275,8 @@ void cmCPackIFWInstaller::ConfigureFromOptions()
|
||||
class cmCPackIFWResourcesParser : public cmXMLParser
|
||||
{
|
||||
public:
|
||||
cmCPackIFWResourcesParser(cmCPackIFWInstaller* i)
|
||||
explicit cmCPackIFWResourcesParser(cmCPackIFWInstaller* i)
|
||||
: installer(i)
|
||||
, file(false)
|
||||
{
|
||||
this->path = i->Directory + "/resources";
|
||||
}
|
||||
@@ -296,7 +295,9 @@ public:
|
||||
}
|
||||
|
||||
cmCPackIFWInstaller* installer;
|
||||
bool file, hasFiles, hasErrors;
|
||||
bool file = false;
|
||||
bool hasFiles = false;
|
||||
bool hasErrors = false;
|
||||
std::string path, basePath;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user