File: gcc7.patch

package info (click to toggle)
mgen 5.02.c%2Breally5.1.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,468 kB
  • sloc: cpp: 78,523; ansic: 4,169; python: 1,334; sh: 30; makefile: 18
file content (19 lines) | stat: -rw-r--r-- 778 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Fix build with gcc 7
 - Peek{Next,Prev}Item calls const function, so needs to be const
Bug-Debian: https://bugs.debian.org/853547

--- a/protolib/include/protoTree.h
+++ b/protolib/include/protoTree.h
@@ -567,9 +567,9 @@
                 Item* GetPrevItem()
                     {return list_iterator.GetPrevItem();}
                 
-                Item* PeekNextItem()
+                Item* PeekNextItem() const
                     {return list_iterator.PeekNextItem();}
-                Item* PeekPrevItem()
+                Item* PeekPrevItem() const
                     {return list_iterator.PeekPrevItem();}
                 
                 /// Note if "reverse" is "true", then "keyMin" is really "keyMax"