X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=blobdiff_plain;f=source%2Fgraphics%2Fimage.cpp;fp=source%2Fgraphics%2Fimage.cpp;h=813672bca52d8fdec846629e53845af9c3a6dd17;hp=5b2eb1ac3f6decbe74b5c774c246a9e58c6c0aa1;hb=507fa60f32bd3f64840a2cdd1be5d68478432b55;hpb=cea95778acfd6e172639cafd7ad249cc13ceb2a6 diff --git a/source/graphics/image.cpp b/source/graphics/image.cpp index 5b2eb1a..813672b 100644 --- a/source/graphics/image.cpp +++ b/source/graphics/image.cpp @@ -15,7 +15,7 @@ Image::Data::Data(const Data &other): width(other.width), height(other.height), stride(other.stride), - owned_pixels(other.pixels ? new char[stride*height] : 0), + owned_pixels(other.pixels ? new char[stride*height] : nullptr), pixels(owned_pixels) { if(pixels) @@ -25,7 +25,7 @@ Image::Data::Data(const Data &other): Image::Data &Image::Data::operator=(const Data &other) { delete[] owned_pixels; - pixels = owned_pixels = 0; + pixels = owned_pixels = nullptr; fmt = other.fmt; width = other.width;