diff options
| author | Slávek Banko <slavek.banko@axis.cz> | 2019-05-11 17:41:22 +0200 |
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2019-05-12 16:30:30 +0200 |
| commit | c0263d89c688f750a6e68a7f77257b2be0c55990 (patch) | |
| tree | 47b1f49338ff6ff2706681de80753613f9c8a27e /lib/libchmfile/libchmfileimpl.h | |
| parent | f0a3534123e54a962a4c7de7ebd332e6eae658d1 (diff) | |
| download | kchmviewer-c0263d89c688f750a6e68a7f77257b2be0c55990.tar.gz kchmviewer-c0263d89c688f750a6e68a7f77257b2be0c55990.zip | |
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'lib/libchmfile/libchmfileimpl.h')
| -rw-r--r-- | lib/libchmfile/libchmfileimpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libchmfile/libchmfileimpl.h b/lib/libchmfile/libchmfileimpl.h index c0a606f..d596d81 100644 --- a/lib/libchmfile/libchmfileimpl.h +++ b/lib/libchmfile/libchmfileimpl.h @@ -109,7 +109,7 @@ class LCHMFileImpl //! Encode the string with the currently selected text codec, if possible. Or return as-is, if not. inline TQString encodeWithCurrentCodec (const TQString& str) const { - return (m_textCodec ? m_textCodec->toUnicode (str) : str); + return (m_textCodec ? m_textCodec->toUnicode (str.utf8()) : str); } //! Encode the string with the currently selected text codec, if possible. Or return as-is, if not. @@ -122,7 +122,7 @@ class LCHMFileImpl //! Or return as-is, if not. inline TQString encodeInternalWithCurrentCodec (const TQString& str) const { - return (m_textCodecForSpecialFiles ? m_textCodecForSpecialFiles->toUnicode (str) : str); + return (m_textCodecForSpecialFiles ? m_textCodecForSpecialFiles->toUnicode (str.utf8()) : str); } //! Encode the string from internal files with the currently selected text codec, if possible. |
