removed incorrect 'static' keyword from var declarations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -242,9 +242,9 @@ wxBitmap::wxBitmap(const char bits[], int width, int height, int depth)
|
|||||||
// we assume that it is in XBM format which is not quite the same as
|
// we assume that it is in XBM format which is not quite the same as
|
||||||
// the format CreateBitmap() wants because the order of bytes in the
|
// the format CreateBitmap() wants because the order of bytes in the
|
||||||
// line is inversed!
|
// line is inversed!
|
||||||
static const size_t bytesPerLine = (width + 7) / 8;
|
const size_t bytesPerLine = (width + 7) / 8;
|
||||||
static const size_t padding = bytesPerLine % 2;
|
const size_t padding = bytesPerLine % 2;
|
||||||
static const size_t len = height * ( padding + bytesPerLine );
|
const size_t len = height * ( padding + bytesPerLine );
|
||||||
data = (char *)malloc(len);
|
data = (char *)malloc(len);
|
||||||
const char *src = bits;
|
const char *src = bits;
|
||||||
char *dst = data;
|
char *dst = data;
|
||||||
@@ -305,7 +305,7 @@ bool wxBitmap::CreateFromXpm(const char **data)
|
|||||||
*this = wxBitmap(img);
|
*this = wxBitmap(img);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#else
|
#else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user