diff options
| author | Léo Lam <leo@leolam.fr> | 2020-11-21 01:58:22 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2020-11-21 02:08:09 +0100 |
| commit | 9efc81ae98076ce55898ef5634e206d32da713a8 (patch) | |
| tree | e6fbb5eb26d8e546803ec039a23ab08d72b2df29 /Source/Core/InputCommon | |
| parent | 7840f61524768f47ee38c585f62f9e86d0a3d4bb (diff) | |
Fix variable shadowing warnings
Diffstat (limited to 'Source/Core/InputCommon')
| -rw-r--r-- | Source/Core/InputCommon/ImageOperations.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/InputCommon/ImageOperations.h b/Source/Core/InputCommon/ImageOperations.h index 28d3859ff5..87a4b37d6d 100644 --- a/Source/Core/InputCommon/ImageOperations.h +++ b/Source/Core/InputCommon/ImageOperations.h @@ -32,13 +32,13 @@ struct ImagePixelData { ImagePixelData() = default; - explicit ImagePixelData(std::vector<Pixel> image_pixels, u32 width, u32 height) - : pixels(std::move(image_pixels)), width(width), height(height) + explicit ImagePixelData(std::vector<Pixel> image_pixels, u32 width_, u32 height_) + : pixels(std::move(image_pixels)), width(width_), height(height_) { } - explicit ImagePixelData(u32 width, u32 height, const Pixel& default_color = Pixel{0, 0, 0, 0}) - : pixels(width * height, default_color), width(width), height(height) + explicit ImagePixelData(u32 width_, u32 height_, const Pixel& default_color = Pixel{0, 0, 0, 0}) + : pixels(width_ * height_, default_color), width(width_), height(height_) { } std::vector<Pixel> pixels; |
