You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
640 B

  1. --- a/src/util/string_converter.cc
  2. +++ b/src/util/string_converter.cc
  3. @@ -41,15 +41,15 @@ StringConverter::StringConverter(const std::string& from, const std::string& to)
  4. dirty = false;
  5. cd = iconv_open(to.c_str(), from.c_str());
  6. - if (cd == reinterpret_cast<iconv_t>(-1)) {
  7. - cd = static_cast<iconv_t>(nullptr);
  8. + if (cd == (iconv_t)(-1)) {
  9. + cd = (iconv_t)(nullptr);
  10. throw_std_runtime_error(std::string("iconv: ") + strerror(errno));
  11. }
  12. }
  13. StringConverter::~StringConverter()
  14. {
  15. - if (cd != static_cast<iconv_t>(nullptr))
  16. + if (cd != (iconv_t)(nullptr))
  17. iconv_close(cd);
  18. }