summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maennich <matthias@maennich.net>2017-09-19 23:49:38 +0200
committerBrad King <brad.king@kitware.com>2017-09-28 07:23:42 -0400
commit9a2da3395034844fb91998005d9c7db648492c6b (patch)
treecfbae33e6f9b354c63fc33e9568c81b846e094e7
parent870dd06da15751250786d435ee4c1361a2b10b4d (diff)
downloadcmake-9a2da3395034844fb91998005d9c7db648492c6b.tar.gz
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 457f913e51..356ebd0395 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 ceed6012c3..22ec61b6e2 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&) {}