From: Dirk Lemstra Date: Sat, 3 Aug 2019 12:53:13 +0000 (+0200) Subject: Attempt to fix build errors. X-Git-Tag: 7.0.8-59~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2dde12fb5e4dc928f87e7962d1f5a4ab0d0cf542;p=imagemagick Attempt to fix build errors. --- diff --git a/Magick++/fuzz/encoder_list.cc b/Magick++/fuzz/encoder_list.cc index ca54e814d..b3b42498d 100644 --- a/Magick++/fuzz/encoder_list.cc +++ b/Magick++/fuzz/encoder_list.cc @@ -53,13 +53,13 @@ int main() { for (std::list::iterator it = coderList.begin(); it != coderList.end(); it++) { - std::string magick_module=(*it).magick_module(); - if (std::find(excludeList.begin(), excludeList.end(), magick_module) != excludeList.end()) + std::string module=(*it).module(); + if (std::find(excludeList.begin(), excludeList.end(), module) != excludeList.end()) continue; - if ((*it).name() == magick_module) - std::cout << ((*it).isWritable() ? "+" : "-") << magick_module << ":" << getInitializer(magick_module) << std::endl; - else if (std::find(allowedNames.begin(), allowedNames.end(), magick_module) != allowedNames.end()) - std::cout << ((*it).isWritable() ? "+" : "-") << (*it).name() << ":" << getInitializer(magick_module) << std::endl; + if ((*it).name() == module) + std::cout << ((*it).isWritable() ? "+" : "-") << module << ":" << getInitializer(module) << std::endl; + else if (std::find(allowedNames.begin(), allowedNames.end(), module) != allowedNames.end()) + std::cout << ((*it).isWritable() ? "+" : "-") << (*it).name() << ":" << getInitializer(module) << std::endl; } }