fix "Program is using uninitialized variables." GCC warning

This commit is contained in:
Matthias Mailänder 2014-12-20 11:45:17 +01:00 committed by Matthias Mailänder
parent a523f686fc
commit d5068e071d

View File

@ -86,7 +86,7 @@ Color Color::fromIndex(int index)
// static
Color Color::fromImage(PixelFormat pixelFormat, color_t c)
{
Color color = Color::fromMask();
Color color = app::Color::fromMask();
switch (pixelFormat) {
@ -124,7 +124,7 @@ Color Color::fromImageGetPixel(Image *image, int x, int y)
// static
Color Color::fromString(const std::string& str)
{
Color color = Color::fromMask();
Color color = app::Color::fromMask();
if (str != "mask") {
if (str.find("rgb{") == 0 ||