From 089757c176159291d99d902955ef27312a8471a7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Dec 2017 22:11:45 +0300 Subject: Remove default parameter from image.h --- src/resources/image/image.h | 5 +++-- src/resources/image/subimage.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/resources/image/image.h b/src/resources/image/image.h index 1da834bb1..d3a6d5aac 100644 --- a/src/resources/image/image.h +++ b/src/resources/image/image.h @@ -217,8 +217,9 @@ class Image notfinal : public Resource // ----------------------- /** SDL Constructor */ - Image(SDL_Surface *restrict const image, const bool hasAlphaChannel, - uint8_t *restrict const alphaChannel = nullptr); + Image(SDL_Surface *restrict const image, + const bool hasAlphaChannel, + uint8_t *restrict const alphaChannel); #ifdef USE_SDL2 Image(SDL_Texture *restrict const image, diff --git a/src/resources/image/subimage.cpp b/src/resources/image/subimage.cpp index 0b14b788e..3060dfd51 100644 --- a/src/resources/image/subimage.cpp +++ b/src/resources/image/subimage.cpp @@ -88,7 +88,7 @@ SubImage::SubImage(Image *const parent, SDL_Surface *const image, const int x, const int y, const int width, const int height) : - Image(image, false), + Image(image, false, nullptr), mInternalBounds(), mParent(parent) { -- cgit v1.2.3-60-g2f50