+ remove non-const accessor

This commit is contained in:
Artem Pavlenko 2011-01-04 15:22:41 +00:00
parent d8d3bad84f
commit 71356d8d35

View file

@ -1365,7 +1365,10 @@ namespace agg
//--------------------------------------------------------------------- //---------------------------------------------------------------------
void profile(const line_profile_aa& prof) { m_profile = &prof; } void profile(const line_profile_aa& prof) { m_profile = &prof; }
const line_profile_aa& profile() const { return *m_profile; } const line_profile_aa& profile() const { return *m_profile; }
line_profile_aa& profile() { return *m_profile; }
// error: binding of reference to type 'agg::line_profile_aa' to a value of type
// 'const agg::line_profile_aa' drops qualifiers
//line_profile_aa& profile() { return *m_profile; }
//--------------------------------------------------------------------- //---------------------------------------------------------------------
int subpixel_width() const { return m_profile->subpixel_width(); } int subpixel_width() const { return m_profile->subpixel_width(); }