summaryrefslogtreecommitdiffstats
path: root/src/render/texture/qtexture.cpp
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-04-27 10:09:05 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2022-04-27 10:41:44 +0200
commit47957159fc9a5f07dd29b74b7846fe99bf5237ee (patch)
treee318d22e7ae4c5ecdfc4fae172140e4c4a375359 /src/render/texture/qtexture.cpp
parent6a04e91130ab79c1dfd9d900068abe94bb6d531d (diff)
Remove uses of deprecated {QByteArray, QString}::count()
Change-Id: Ic2da884f11d7578c9972e779fd350a0135e55431 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/render/texture/qtexture.cpp')
-rw-r--r--src/render/texture/qtexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/texture/qtexture.cpp b/src/render/texture/qtexture.cpp
index 10e6c327e..51e6a170c 100644
--- a/src/render/texture/qtexture.cpp
+++ b/src/render/texture/qtexture.cpp
@@ -544,7 +544,7 @@ QTextureImageDataPtr setKtxFile(QIODevice *source)
}
const int bytesToSkip = decode(header.bytesOfKeyValueData);
- if (source->read(bytesToSkip).count() != bytesToSkip) {
+ if (source->read(bytesToSkip).size() != bytesToSkip) {
qWarning("Unexpected end of ktx data");
return imageData;
}