From 95f43dd3560c381b11df005d4e3ea8f20e1dd45e Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 28 Nov 2017 14:42:26 +0100 Subject: [PATCH] cpp.cc: cpp_generator::print_public_constructors_impl: drop redundant argument The redundant argument to the osprintf call was introduced in isl-0.18-599-g7d3c260fb5 (cpp: support methods and constructors, Thu Apr 13 21:42:03 2017 +0200). Signed-off-by: Sven Verdoolaege --- interface/cpp.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/interface/cpp.cc b/interface/cpp.cc index 006f597f..5c8d5227 100644 --- a/interface/cpp.cc +++ b/interface/cpp.cc @@ -475,13 +475,12 @@ void cpp_generator::print_private_constructors_impl(ostream &os, void cpp_generator::print_public_constructors_impl(ostream &os, const isl_class &clazz) { - const char *name = clazz.name.c_str(); std::string cppstring = type2cpp(clazz); const char *cppname = cppstring.c_str(); osprintf(os, "%s::%s()\n : ptr(nullptr) {}\n\n", cppname, cppname); osprintf(os, "%s::%s(const isl::%s &obj)\n : ptr(obj.copy()) {}\n", - cppname, cppname, cppname, name); + cppname, cppname, cppname); } /* Print implementations of constructors for class "clazz" to "os". -- 2.11.4.GIT