diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-13 08:58:03 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-13 15:40:57 -0300 |
commit | dd0e14603b9ed5f72db1791c1e9e3d67be1df266 (patch) | |
tree | 7b57006647a40a445037f705203a2a10453653e6 /testing/agg/bad-const.patch | |
parent | a33cf7235864a327ab6c72fd9d2bb89528177365 (diff) | |
download | aports-dd0e14603b9ed5f72db1791c1e9e3d67be1df266.tar.bz2 aports-dd0e14603b9ed5f72db1791c1e9e3d67be1df266.tar.xz |
testing/agg: fix build, import patches from Arch Linux
Diffstat (limited to 'testing/agg/bad-const.patch')
-rw-r--r-- | testing/agg/bad-const.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/agg/bad-const.patch b/testing/agg/bad-const.patch new file mode 100644 index 0000000000..045e77ba13 --- /dev/null +++ b/testing/agg/bad-const.patch @@ -0,0 +1,12 @@ +diff -u -r agg-2.5/include/agg_renderer_outline_aa.h agg-2.5-const/include/agg_renderer_outline_aa.h +--- agg-2.5/include/agg_renderer_outline_aa.h 2006-10-09 06:07:08.000000000 +0200 ++++ agg-2.5-const/include/agg_renderer_outline_aa.h 2018-06-16 23:09:16.500057814 +0200 +@@ -1375,7 +1375,7 @@ + //--------------------------------------------------------------------- + void profile(const line_profile_aa& prof) { m_profile = &prof; } + const line_profile_aa& profile() const { return *m_profile; } +- line_profile_aa& profile() { return *m_profile; } ++ line_profile_aa& profile() { return *const_cast<line_profile_aa*>(m_profile); } + + //--------------------------------------------------------------------- + int subpixel_width() const { return m_profile->subpixel_width(); } |