summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Maennich <matthias@maennich.net>2017-09-19 21:49:38 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-28 11:23:42 (GMT)
commit9a2da3395034844fb91998005d9c7db648492c6b (patch)
treecfbae33e6f9b354c63fc33e9568c81b846e094e7
parent870dd06da15751250786d435ee4c1361a2b10b4d (diff)
downloadCMake-9a2da3395034844fb91998005d9c7db648492c6b.zip
CMake-9a2da3395034844fb91998005d9c7db648492c6b.tar.gz
CMake-9a2da3395034844fb91998005d9c7db648492c6b.tar.bz2
Fix some occurrences of readability-avoid-const-params-in-decls
Fix issues diagnosed by clang-tidy [readability-avoid-const-params-in-decls] Signed-off-by: Matthias Maennich <matthias@maennich.net>
-rw-r--r--Source/cmXCodeObject.cxx6
-rw-r--r--Source/cmXCodeObject.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index 457f913..356ebd0 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -129,9 +129,9 @@ void cmXCodeObject::Print(std::ostream& out)
out << "};\n";
}
-void cmXCodeObject::PrintAttribute(std::ostream& out, const int level,
- const std::string& separator,
- const int factor, const std::string& name,
+void cmXCodeObject::PrintAttribute(std::ostream& out, int level,
+ const std::string& separator, int factor,
+ const std::string& name,
const cmXCodeObject* object,
const cmXCodeObject* parent)
{
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h
index ceed601..22ec61b 100644
--- a/Source/cmXCodeObject.h
+++ b/Source/cmXCodeObject.h
@@ -94,8 +94,8 @@ public:
}
static void Indent(int level, std::ostream& out);
void Print(std::ostream& out);
- void PrintAttribute(std::ostream& out, const int level,
- const std::string& separator, const int factor,
+ void PrintAttribute(std::ostream& out, int level,
+ const std::string& separator, int factor,
const std::string& name, const cmXCodeObject* object,
const cmXCodeObject* parent);
virtual void PrintComment(std::ostream&) {}