diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-22 15:37:38 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-27 13:45:45 (GMT) |
commit | 808b17b1206dd70c7fbd676e8c24181cde537954 (patch) | |
tree | e20da218e1f9d702f4ff76fac9595740d375c3ed /Source/CPack/IFW | |
parent | 4470eb5179d6ccbe5e31cec758546e820752f2d8 (diff) | |
download | CMake-808b17b1206dd70c7fbd676e8c24181cde537954.zip CMake-808b17b1206dd70c7fbd676e8c24181cde537954.tar.gz CMake-808b17b1206dd70c7fbd676e8c24181cde537954.tar.bz2 |
clang-tidy: fix `readability-make-member-function-const` warnings
Diffstat (limited to 'Source/CPack/IFW')
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWCommon.cxx | 8 | ||||
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWCommon.h | 8 | ||||
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWRepository.cxx | 4 | ||||
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWRepository.h | 4 |
4 files changed, 12 insertions, 12 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWCommon.cxx b/Source/CPack/IFW/cmCPackIFWCommon.cxx index 20d392d..87ebbfe 100644 --- a/Source/CPack/IFW/cmCPackIFWCommon.cxx +++ b/Source/CPack/IFW/cmCPackIFWCommon.cxx @@ -44,7 +44,7 @@ bool cmCPackIFWCommon::IsSetToEmpty(const std::string& op) const : false; } -bool cmCPackIFWCommon::IsVersionLess(const char* version) +bool cmCPackIFWCommon::IsVersionLess(const char* version) const { if (!this->Generator) { return false; @@ -54,7 +54,7 @@ bool cmCPackIFWCommon::IsVersionLess(const char* version) cmSystemTools::OP_LESS, this->Generator->FrameworkVersion.data(), version); } -bool cmCPackIFWCommon::IsVersionGreater(const char* version) +bool cmCPackIFWCommon::IsVersionGreater(const char* version) const { if (!this->Generator) { return false; @@ -65,7 +65,7 @@ bool cmCPackIFWCommon::IsVersionGreater(const char* version) version); } -bool cmCPackIFWCommon::IsVersionEqual(const char* version) +bool cmCPackIFWCommon::IsVersionEqual(const char* version) const { if (!this->Generator) { return false; @@ -118,7 +118,7 @@ void cmCPackIFWCommon::ExpandListArgument( } } -void cmCPackIFWCommon::WriteGeneratedByToStrim(cmXMLWriter& xout) +void cmCPackIFWCommon::WriteGeneratedByToStrim(cmXMLWriter& xout) const { if (!this->Generator) { return; diff --git a/Source/CPack/IFW/cmCPackIFWCommon.h b/Source/CPack/IFW/cmCPackIFWCommon.h index 95ed213..42deda4 100644 --- a/Source/CPack/IFW/cmCPackIFWCommon.h +++ b/Source/CPack/IFW/cmCPackIFWCommon.h @@ -34,17 +34,17 @@ public: /** * Compare \a version with QtIFW framework version */ - bool IsVersionLess(const char* version); + bool IsVersionLess(const char* version) const; /** * Compare \a version with QtIFW framework version */ - bool IsVersionGreater(const char* version); + bool IsVersionGreater(const char* version) const; /** * Compare \a version with QtIFW framework version */ - bool IsVersionEqual(const char* version); + bool IsVersionEqual(const char* version) const; /** Expand the list argument containing the map of the key-value pairs. * If the number of elements is odd, then the first value is used as the @@ -64,7 +64,7 @@ public: cmCPackIFWGenerator* Generator; protected: - void WriteGeneratedByToStrim(cmXMLWriter& xout); + void WriteGeneratedByToStrim(cmXMLWriter& xout) const; }; #define cmCPackIFWLogger(logType, msg) \ diff --git a/Source/CPack/IFW/cmCPackIFWRepository.cxx b/Source/CPack/IFW/cmCPackIFWRepository.cxx index 1287907..7ec2256 100644 --- a/Source/CPack/IFW/cmCPackIFWRepository.cxx +++ b/Source/CPack/IFW/cmCPackIFWRepository.cxx @@ -199,7 +199,7 @@ bool cmCPackIFWRepository::PatchUpdatesXml() return cmSystemTools::RenameFile(updatesPatchXml, updatesXml); } -void cmCPackIFWRepository::WriteRepositoryConfig(cmXMLWriter& xout) +void cmCPackIFWRepository::WriteRepositoryConfig(cmXMLWriter& xout) const { xout.StartElement("Repository"); @@ -225,7 +225,7 @@ void cmCPackIFWRepository::WriteRepositoryConfig(cmXMLWriter& xout) xout.EndElement(); } -void cmCPackIFWRepository::WriteRepositoryUpdate(cmXMLWriter& xout) +void cmCPackIFWRepository::WriteRepositoryUpdate(cmXMLWriter& xout) const { xout.StartElement("Repository"); diff --git a/Source/CPack/IFW/cmCPackIFWRepository.h b/Source/CPack/IFW/cmCPackIFWRepository.h index 21afd8b..0153452 100644 --- a/Source/CPack/IFW/cmCPackIFWRepository.h +++ b/Source/CPack/IFW/cmCPackIFWRepository.h @@ -76,8 +76,8 @@ public: bool PatchUpdatesXml(); - void WriteRepositoryConfig(cmXMLWriter& xout); - void WriteRepositoryUpdate(cmXMLWriter& xout); + void WriteRepositoryConfig(cmXMLWriter& xout) const; + void WriteRepositoryUpdate(cmXMLWriter& xout) const; void WriteRepositoryUpdates(cmXMLWriter& xout); RepositoriesVector RepositoryUpdate; |