compilation fixes (apparently, gcc <3.4 didn't validate code in templates that were never used, at least in this case)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2004-05-01 22:13:02 +00:00
parent d6cb2e49d3
commit 9941ff2d65

View File

@ -388,9 +388,9 @@ struct WXDLLEXPORT wxPixelDataOut<wxImage>
// ----------- // -----------
// access to invidividual colour components // access to invidividual colour components
ChannelType& Red() { return m_ptr[PixelFormat::RED]; } ChannelType& Red() { return m_pRGB[PixelFormat::RED]; }
ChannelType& Green() { return m_ptr[PixelFormat::GREEN]; } ChannelType& Green() { return m_pRGB[PixelFormat::GREEN]; }
ChannelType& Blue() { return m_ptr[PixelFormat::BLUE]; } ChannelType& Blue() { return m_pRGB[PixelFormat::BLUE]; }
ChannelType& Alpha() { return *m_pAlpha; } ChannelType& Alpha() { return *m_pAlpha; }
// private: -- see comment in the beginning of the file // private: -- see comment in the beginning of the file
@ -426,7 +426,7 @@ struct WXDLLEXPORT wxPixelDataOut<wxImage>
{ {
m_stride = Iterator::SizePixel * m_width; m_stride = Iterator::SizePixel * m_width;
InitRect(rect.GetPositions(), rect.GetSize()); InitRect(rect.GetPosition(), rect.GetSize());
} }
// we evaluate to true only if we could get access to bitmap data // we evaluate to true only if we could get access to bitmap data