diff options
author | Slávek Banko <[email protected]> | 2019-05-11 17:41:22 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-05-12 17:38:30 +0200 |
commit | 518045aebbfa9cf4cd1f9f4b36d5003f2414795e (patch) | |
tree | a4f0888ef3228dab49d298b0bd1f19e0001382dd /lib/libchmfile/libchmurlfactory.h | |
parent | 87aa164bb841a8ffe4f418f14f861b16a6780003 (diff) | |
download | kchmviewer-518045aebbfa9cf4cd1f9f4b36d5003f2414795e.tar.gz kchmviewer-518045aebbfa9cf4cd1f9f4b36d5003f2414795e.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 <[email protected]>
(cherry picked from commit c0263d89c688f750a6e68a7f77257b2be0c55990)
Diffstat (limited to 'lib/libchmfile/libchmurlfactory.h')
-rw-r--r-- | lib/libchmfile/libchmurlfactory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libchmfile/libchmurlfactory.h b/lib/libchmfile/libchmurlfactory.h index a897138..fba5614 100644 --- a/lib/libchmfile/libchmurlfactory.h +++ b/lib/libchmfile/libchmurlfactory.h @@ -113,7 +113,7 @@ static inline bool handleFileType( const TQString& link, TQString& generated ) if ( !link.endsWith( intext ) ) return false; - TQString filelink = link.left( link.length() - strlen( intext ) ); + TQString filelink = link.left( link.length() - intext.length() ); generated = "<html><body><img src=\"" + filelink + "\"></body></html>"; return true; } |