diff options
Diffstat (limited to 'src/image.cpp')
-rw-r--r-- | src/image.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image.cpp b/src/image.cpp index 88c134f..8cb6fa4 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -103,7 +103,7 @@ TQByteArray Image::byteArray(const TQImage& img_, const TQCString& outputFormat_ } TQString Image::idClean(const TQString& id_) { - static const TQRegExp rx('[' + TQRegExp::escape(TQString::tqfromLatin1("/@<>#\"&%?={}|^~[]'`\\:+")) + ']'); + static const TQRegExp rx('[' + TQRegExp::escape(TQString::fromLatin1("/@<>#\"&%?={}|^~[]'`\\:+")) + ']'); TQString clean = id_; return clean.remove(rx); } @@ -116,7 +116,7 @@ void Image::calculateID() { // the id will eventually be used as a filename if(!isNull()) { KMD5 md5(byteArray()); - m_id = TQString::tqfromLatin1(md5.hexDigest()) + TQString::tqfromLatin1(".") + TQString::tqfromLatin1(m_format).lower(); + m_id = TQString::fromLatin1(md5.hexDigest()) + TQString::fromLatin1(".") + TQString::fromLatin1(m_format).lower(); m_id = idClean(m_id); } } |