From 367f2b3089f76070af2bb6387f7b28da8c4e2412 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 5 Jan 2011 18:13:33 +0000 Subject: [PATCH] revert r2497 --- agg/include/agg_renderer_outline_aa.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agg/include/agg_renderer_outline_aa.h b/agg/include/agg_renderer_outline_aa.h index 112d6fa6c..bf5a493a9 100644 --- a/agg/include/agg_renderer_outline_aa.h +++ b/agg/include/agg_renderer_outline_aa.h @@ -1365,7 +1365,10 @@ namespace agg //--------------------------------------------------------------------- void profile(const line_profile_aa& prof) { m_profile = &prof; } const line_profile_aa& profile() const { return *m_profile; } - line_profile_aa& profile() { return const_cast(*m_profile); } + + // clang 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(); }