diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-03 00:36:33 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-04 14:19:15 +0900 |
| commit | fb6b4d204d1155fa3a1bc7a128873340db1524f7 (patch) | |
| tree | 58fbd21cd52695207154b1b40d0c9d0f53db19b1 /lib/kofficecore/KoPictureShared.cpp | |
| parent | d7ae9fb514226c126e04cfe4f34800beb9f4ea19 (diff) | |
| download | koffice-fb6b4d204d1155fa3a1bc7a128873340db1524f7.tar.gz koffice-fb6b4d204d1155fa3a1bc7a128873340db1524f7.zip | |
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/kofficecore/KoPictureShared.cpp')
| -rw-r--r-- | lib/kofficecore/KoPictureShared.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/kofficecore/KoPictureShared.cpp b/lib/kofficecore/KoPictureShared.cpp index 57d95f659..996df9edd 100644 --- a/lib/kofficecore/KoPictureShared.cpp +++ b/lib/kofficecore/KoPictureShared.cpp @@ -208,7 +208,7 @@ bool KoPictureShared::identifyAndLoad( TQByteArray array ) TQBuffer buffer(array); buffer.open(IO_ReadOnly); - const bool flag = loadCompressed( TQT_TQIODEVICE(&buffer), "application/x-gzip", "tmp" ); + const bool flag = loadCompressed( &buffer, "application/x-gzip", "tmp" ); buffer.close(); return flag; } @@ -217,7 +217,7 @@ bool KoPictureShared::identifyAndLoad( TQByteArray array ) // BZip2 TQBuffer buffer(array); buffer.open(IO_ReadOnly); - const bool flag = loadCompressed( TQT_TQIODEVICE(&buffer), "application/x-bzip2", "tmp" ); + const bool flag = loadCompressed( &buffer, "application/x-bzip2", "tmp" ); buffer.close(); return flag; } @@ -252,7 +252,7 @@ bool KoPictureShared::identifyAndLoad( TQByteArray array ) return false; } - imageIO.setIODevice(TQT_TQIODEVICE(&buf)); + imageIO.setIODevice(&buf); imageIO.setFormat("PNG"); if (!imageIO.write()) @@ -309,7 +309,7 @@ bool KoPictureShared::loadXpm(TQIODevice* io) m_base=new KoPictureImage(); TQBuffer buffer(array); - bool check = m_base->load(TQT_TQIODEVICE(&buffer),"xpm"); + bool check = m_base->load(&buffer,"xpm"); setExtension("xpm"); return check; } @@ -441,13 +441,13 @@ bool KoPictureShared::loadFromFile(const TQString& fileName) { kdDebug(30003) << "File with no extension!" << endl; // As we have no extension, consider it like a temporary file - flag = loadTmp( TQT_TQIODEVICE(&file) ); + flag = loadTmp( &file ); } else { const TQString extension( fileName.mid( pos+1 ) ); // ### TODO: check if the extension if gz or bz2 and find the previous extension - flag = load( TQT_TQIODEVICE(&file), extension ); + flag = load( &file, extension ); } file.close(); return flag; |
