Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Images/PngWriter.cpp @ 4657:e8967149d87a
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 May 2021 06:35:13 +0200 |
parents | 69bbb4bd35cb |
children | 7053502fbf97 |
comparison
equal
deleted
inserted
replaced
4656:82a314325351 | 4657:e8967149d87a |
---|---|
88 int colorType_; | 88 int colorType_; |
89 | 89 |
90 public: | 90 public: |
91 Context() : | 91 Context() : |
92 png_(NULL), | 92 png_(NULL), |
93 info_(NULL) | 93 info_(NULL), |
94 bitDepth_(0), // Dummy initialization | |
95 colorType_(0) // Dummy initialization | |
94 { | 96 { |
95 png_ = png_create_write_struct | 97 png_ = png_create_write_struct |
96 (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); //this, ErrorHandler, WarningHandler); | 98 (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); //this, ErrorHandler, WarningHandler); |
97 if (!png_) | 99 if (!png_) |
98 { | 100 { |