Skip to content

Commit 3276a52

Browse files
committed
cleanup
Signed-off-by: Ian Chen <[email protected]>
1 parent b71e351 commit 3276a52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graphics/src/Image.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ namespace gz
3838
class Image::Implementation
3939
{
4040
/// \brief bitmap data
41-
public: FIBITMAP *bitmap;
41+
public: FIBITMAP *bitmap{nullptr};
4242

4343
/// \brief path name of the image file
4444
public: std::string fullName;
4545

4646
/// \brief Color type for this image
47-
public: FREE_IMAGE_COLOR_TYPE colorType;
47+
public: FREE_IMAGE_COLOR_TYPE colorType{FIC_RGB};
4848

4949
/// \brief Image type, i.e. pixel format
50-
public: FREE_IMAGE_TYPE imageType;
50+
public: FREE_IMAGE_TYPE imageType{FIT_UNKNOWN};
5151

5252
/// \brief Implementation of Data, returns vector of bytes
5353
public: std::vector<unsigned char> DataImpl(FIBITMAP *_img) const;

0 commit comments

Comments
 (0)