mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kimgio: deprecated warning fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f605b5f6c4
commit
304482299e
1 changed files with 3 additions and 3 deletions
|
@ -186,7 +186,7 @@ bool TIFFHandler::read(QImage *image)
|
|||
return false;
|
||||
}
|
||||
|
||||
uint32 tiffwidth = 0;
|
||||
uint32_t tiffwidth = 0;
|
||||
tiffresult = TIFFGetField(tiffclient, TIFFTAG_IMAGEWIDTH, &tiffwidth);
|
||||
if (Q_UNLIKELY(tiffresult != 1)) {
|
||||
kWarning() << "Could not get image width";
|
||||
|
@ -196,7 +196,7 @@ bool TIFFHandler::read(QImage *image)
|
|||
return false;
|
||||
}
|
||||
|
||||
uint32 tiffheight = 0;
|
||||
uint32_t tiffheight = 0;
|
||||
tiffresult = TIFFGetField(tiffclient, TIFFTAG_IMAGELENGTH, &tiffheight);
|
||||
if (Q_UNLIKELY(tiffresult != 1)) {
|
||||
kWarning() << "Could not get image length";
|
||||
|
@ -218,7 +218,7 @@ bool TIFFHandler::read(QImage *image)
|
|||
tiffresult = TIFFReadRGBAImageOriented(
|
||||
tiffclient,
|
||||
tiffwidth, tiffheight,
|
||||
reinterpret_cast<uint32*>(image->bits()), ORIENTATION_TOPLEFT,
|
||||
reinterpret_cast<uint32_t*>(image->bits()), ORIENTATION_TOPLEFT,
|
||||
1
|
||||
);
|
||||
if (Q_UNLIKELY(tiffresult != 1)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue