Skip to content

Commit

Permalink
Fix build for Qt 5.*.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed May 17, 2023
1 parent 2fd3a24 commit b94ec01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spellcheck/third_party/hunspell_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class CharsetConverter final {
#if __has_include(<glibmm.h>)
: _charset(charset)
#elif QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // __has_include(<glibmm.h>)
: _codec(QTextCodec::codecForName(charset))
: _codec(QTextCodec::codecForName(charset.c_str()))
#endif // Qt < 6.0.0
{}

Expand Down

0 comments on commit b94ec01

Please sign in to comment.