diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-01-13 15:27:30 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-01-13 15:47:07 +0100 |
commit | 285ba724659a52adc1de118330c1253dd922fdc3 (patch) | |
tree | efdd9ba26bcd0eff9907660c633a7e59db432488 /src | |
parent | 9b62d9cd2b48681c27186529026909893712191f (diff) | |
download | kbookreader-285ba724659a52adc1de118330c1253dd922fdc3.tar.gz kbookreader-285ba724659a52adc1de118330c1253dd922fdc3.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>
(cherry picked from commit b1833cf50dace47a755e575b1faa5372b7fb7d1a)
Diffstat (limited to 'src')
-rw-r--r-- | src/bookwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bookwidget.cpp b/src/bookwidget.cpp index c645524..7a23d70 100644 --- a/src/bookwidget.cpp +++ b/src/bookwidget.cpp @@ -83,7 +83,7 @@ void BookWidget::openURL(const KURL & url) m_stream.reset(new TQTextStream(&m_file)); m_textLines.reset(new TQStringList); TQString name(encoding()); - TQTextCodec *codec = TQTextCodec::codecForName(encoding()); // get the codec + TQTextCodec *codec = TQTextCodec::codecForName(encoding().latin1()); // get the codec if (codec) m_stream->setCodec(codec); //show progress dialog |