summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoPictureShared.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-03 00:36:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-05 11:33:58 +0900
commit9abcf51de91242d1ab70230ba46abd2108416edf (patch)
treeb06138af56a2addecdb37e556deb89f4972d59b8 /lib/kofficecore/KoPictureShared.cpp
parent5761876d3a71e9b3c5a93b5b535b071d2240b08e (diff)
downloadkoffice-9abcf51de91242d1ab70230ba46abd2108416edf.tar.gz
koffice-9abcf51de91242d1ab70230ba46abd2108416edf.zip
Replaced various '#define' with actual strings - part 5
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit fb6b4d204d1155fa3a1bc7a128873340db1524f7)
Diffstat (limited to 'lib/kofficecore/KoPictureShared.cpp')
-rw-r--r--lib/kofficecore/KoPictureShared.cpp12
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;