diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-10-26 01:10:35 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-10-26 01:10:35 +0200 |
commit | b28fa86e6ab633b2d3d9bfdb4642c661ff8c45fc (patch) | |
tree | e3500273bcd79fc9e6389e8dcc626607a2677678 /src/dbus | |
parent | Merge pull request #1215 from foxB612/fix-thumbnail-size (diff) | |
download | nheko-b28fa86e6ab633b2d3d9bfdb4642c661ff8c45fc.tar.xz |
Enable -Wconversion
Diffstat (limited to 'src/dbus')
-rw-r--r-- | src/dbus/NhekoDBusApi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/NhekoDBusApi.cpp b/src/dbus/NhekoDBusApi.cpp index 47fdca69..2367c27b 100644 --- a/src/dbus/NhekoDBusApi.cpp +++ b/src/dbus/NhekoDBusApi.cpp @@ -186,7 +186,7 @@ operator<<(QDBusArgument &arg, const QImage &image) int channels = i.hasAlphaChannel() ? 4 : 3; arg << i.depth() / channels; arg << channels; - arg << QByteArray(reinterpret_cast<const char *>(i.bits()), i.sizeInBytes()); + arg << QByteArray(reinterpret_cast<const char *>(i.bits()), static_cast<int>(i.sizeInBytes())); arg.endStructure(); return arg; |