summaryrefslogtreecommitdiffstats
path: root/src/imageutils
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-02-17 22:29:31 +0300
committerAlexander Golubev <fatzer2@gmail.com>2024-02-17 22:36:27 +0300
commitd4548234b93404404e8807ac6fe5c671faad68f2 (patch)
tree1602ceaabc07e31cc988c5e39e962e14c8aae055 /src/imageutils
parent8c522cac3456c10c5937c98bb6866323639aff51 (diff)
downloadgwenview-d4548234b93404404e8807ac6fe5c671faad68f2.tar.gz
gwenview-d4548234b93404404e8807ac6fe5c671faad68f2.zip
Various small improvements
- fix some warnings about struct/class deslaration/definition mismatch - fix incorrect assert in jpegcontent.cpp - add a note - null a pointer after deleting a job Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'src/imageutils')
-rw-r--r--src/imageutils/jpegcontent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imageutils/jpegcontent.cpp b/src/imageutils/jpegcontent.cpp
index b4ad947..0effc16 100644
--- a/src/imageutils/jpegcontent.cpp
+++ b/src/imageutils/jpegcontent.cpp
@@ -88,7 +88,7 @@ int inmem_fill_input_buffer(j_decompress_ptr cinfo) {
void inmem_skip_input_data(j_decompress_ptr cinfo, long num_bytes) {
if (num_bytes<=0) return;
- Q_ASSERT(num_bytes>=long(cinfo->src->bytes_in_buffer));
+ Q_ASSERT(num_bytes<=long(cinfo->src->bytes_in_buffer));
cinfo->src->next_input_byte+=num_bytes;
cinfo->src->bytes_in_buffer-=num_bytes;
}