Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-visualization/hippodraw/files: hippodraw-1.21.3-gcc45.patch
Date: Wed, 02 Jun 2010 10:12:09
Message-Id: 20100602101205.DDE8C2CF37@corvid.gentoo.org
1 xarthisius 10/06/02 10:12:05
2
3 Added: hippodraw-1.21.3-gcc45.patch
4 Log:
5 Fixing build with GCC-4.5 wrt bug 322227. Thanks Diego for the report.
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sci-visualization/hippodraw/files/hippodraw-1.21.3-gcc45.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/hippodraw/files/hippodraw-1.21.3-gcc45.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/hippodraw/files/hippodraw-1.21.3-gcc45.patch?rev=1.1&content-type=text/plain
13
14 Index: hippodraw-1.21.3-gcc45.patch
15 ===================================================================
16 Fixing build with GCC-4.5
17
18 http://bugs.gentoo.org/show_bug.cgi?id=322227
19
20 --- qt/CanvasView.cxx
21 +++ qt/CanvasView.cxx
22 @@ -1670,12 +1670,12 @@
23
24 if ( cut_low < plotter_low )
25 {
26 - Range currentRange = Range::Range ( plotter_low, cut_high );
27 + Range currentRange = Range ( plotter_low, cut_high );
28 cut1d -> setCutRangeAt ( currentRange , 0 );
29 }
30 if ( cut_high > plotter_high )
31 {
32 - Range currentRange = Range::Range ( cut_low , plotter_high );
33 + Range currentRange = Range ( cut_low , plotter_high );
34 cut1d -> setCutRangeAt ( currentRange , 0 );
35 }
36 }
37 @@ -1697,23 +1697,23 @@
38
39 if ( cut_low_x < plotter_low_x )
40 {
41 - Range currentRange = Range::Range ( plotter_low_x, cut_high_x );
42 + Range currentRange = Range ( plotter_low_x, cut_high_x );
43 cut2d -> setCutRangeAt ( currentRange , 0 );
44 }
45 if ( cut_high_x > plotter_high_x )
46 {
47 - Range currentRange = Range::Range ( cut_low_x , plotter_high_x );
48 + Range currentRange = Range ( cut_low_x , plotter_high_x );
49 cut2d -> setCutRangeAt ( currentRange , 0 );
50 }
51
52 if ( cut_low_y < plotter_low_y )
53 {
54 - Range currentRange = Range::Range ( plotter_low_y, cut_high_y );
55 + Range currentRange = Range ( plotter_low_y, cut_high_y );
56 cut2d -> setCutRangeAt ( currentRange , 1 );
57 }
58 if ( cut_high_y > plotter_high_y )
59 {
60 - Range currentRange = Range::Range ( cut_low_y , plotter_high_y );
61 + Range currentRange = Range ( cut_low_y , plotter_high_y );
62 cut2d -> setCutRangeAt ( currentRange , 1 );
63 }
64 }
65 @@ -1730,13 +1730,13 @@
66 double old_high = oldRange.high();
67
68 if ( datax < ( old_low + old_high ) / 2 ) {
69 - Range currentRange = Range::Range ( datax , old_high );
70 + Range currentRange = Range ( datax , old_high );
71 cut1d -> setCutRangeAt ( currentRange , 0 );
72 }
73
74 else
75 {
76 - Range currentRange = Range::Range ( old_low , datax );
77 + Range currentRange = Range ( old_low , datax );
78 cut1d -> setCutRangeAt ( currentRange , 0 );
79 }
80 notifyObservers();
81 @@ -1761,7 +1761,7 @@
82 if ( ( dis_low_x <= 0.1 * (old_high_x - old_low_x)) &&
83 ( dis_low_y <= 0.1 * (old_high_y - old_low_y)) &&
84 ( m_edge == 0 ) || ( m_edge == 1 ) ) {
85 - Range currentRange = Range::Range ( datax, old_high_x );
86 + Range currentRange = Range ( datax, old_high_x );
87 cut2d -> setCutRangeAt ( currentRange, 0 );
88
89 // Handle shift drag.
90 @@ -1775,10 +1775,10 @@
91 // is protected.
92 vector <double> adjusted;
93 qtview->fillPickedPoint(view_left, view_bottom, adjusted);
94 - currentRange = Range::Range ( adjusted[2], old_high_y );
95 + currentRange = Range ( adjusted[2], old_high_y );
96 }
97 else
98 - currentRange = Range::Range ( datay, old_high_y );
99 + currentRange = Range ( datay, old_high_y );
100 cut2d -> setCutRangeAt ( currentRange, 1 );
101 m_edge = 1;
102 }
103 @@ -1787,7 +1787,7 @@
104 else if ( ( dis_low_x <= 0.1 * (old_high_x - old_low_x)) &&
105 ( dis_high_y <= 0.1 * (old_high_y - old_low_y)) &&
106 ( m_edge == 0 ) || ( m_edge == 2 ) ) {
107 - Range currentRange = Range::Range ( datax, old_high_x );
108 + Range currentRange = Range ( datax, old_high_x );
109 cut2d -> setCutRangeAt ( currentRange, 0 );
110
111 // Handle shift drag
112 @@ -1801,10 +1801,10 @@
113 // is protected.
114 vector <double> adjusted;
115 qtview->fillPickedPoint(view_left, view_top, adjusted);
116 - currentRange = Range::Range ( old_low_y, adjusted[2]);
117 + currentRange = Range ( old_low_y, adjusted[2]);
118 }
119 else
120 - currentRange = Range::Range ( old_low_y, datay );
121 + currentRange = Range ( old_low_y, datay );
122 cut2d -> setCutRangeAt ( currentRange, 1 );
123 m_edge = 2;
124 }
125 @@ -1813,7 +1813,7 @@
126 else if ( ( dis_high_x <= 0.1 * (old_high_x - old_low_x)) &&
127 ( dis_low_y <= 0.1 * (old_high_y - old_low_y)) &&
128 ( m_edge == 0 ) || ( m_edge == 3 ) ) {
129 - Range currentRange = Range::Range ( old_low_x, datax );
130 + Range currentRange = Range ( old_low_x, datax );
131 cut2d -> setCutRangeAt ( currentRange, 0 );
132
133 // Handle shift drag.
134 @@ -1827,10 +1827,10 @@
135 // is protected.
136 vector <double> adjusted;
137 qtview->fillPickedPoint(view_right, view_bottom, adjusted);
138 - currentRange = Range::Range ( adjusted[2], old_high_y );
139 + currentRange = Range ( adjusted[2], old_high_y );
140 }
141 else
142 - currentRange = Range::Range ( datay, old_high_y );
143 + currentRange = Range ( datay, old_high_y );
144 cut2d -> setCutRangeAt ( currentRange, 1 );
145 m_edge = 3;
146 }
147 @@ -1839,7 +1839,7 @@
148 else if ( ( dis_high_x <= 0.1 * (old_high_x - old_low_x)) &&
149 ( dis_high_y <= 0.1 * (old_high_y - old_low_y)) &&
150 ( m_edge == 0) || ( m_edge == 4 ) ) {
151 - Range currentRange = Range::Range ( old_low_x, datax );
152 + Range currentRange = Range ( old_low_x, datax );
153 cut2d -> setCutRangeAt ( currentRange, 0 );
154
155 // Handle shift drag.
156 @@ -1853,10 +1853,10 @@
157 // is protected.
158 vector <double> adjusted;
159 qtview->fillPickedPoint(view_right, view_top, adjusted);
160 - currentRange = Range::Range ( old_low_y, adjusted[2] );
161 + currentRange = Range ( old_low_y, adjusted[2] );
162 }
163 else
164 - currentRange = Range::Range ( old_low_y, datay );
165 + currentRange = Range ( old_low_y, datay );
166 cut2d -> setCutRangeAt ( currentRange, 1 );
167 m_edge = 4;
168 }
169 @@ -1866,7 +1866,7 @@
170 ( dis_low_x <= dis_low_y ) &&
171 ( dis_low_x <= dis_high_y ) &&
172 ( m_edge == 0 ) || ( m_edge == 5 ) ) {
173 - Range currentRange = Range::Range ( datax, old_high_x );
174 + Range currentRange = Range ( datax, old_high_x );
175 cut2d -> setCutRangeAt ( currentRange, 0 );
176 m_edge = 5;
177 }
178 @@ -1876,7 +1876,7 @@
179 ( dis_high_x <= dis_low_y ) &&
180 ( dis_high_x <= dis_high_y ) &&
181 ( m_edge == 0 ) || ( m_edge == 6 ) ) {
182 - Range currentRange = Range::Range ( old_low_x, datax );
183 + Range currentRange = Range ( old_low_x, datax );
184 cut2d -> setCutRangeAt ( currentRange, 0 );
185 m_edge = 6;
186 }
187 @@ -1886,7 +1886,7 @@
188 ( dis_low_y <= dis_low_x ) &&
189 ( dis_low_y <= dis_high_y ) &&
190 ( m_edge == 0 ) || ( m_edge == 7 ) ) {
191 - Range currentRange = Range::Range ( datay, old_high_y );
192 + Range currentRange = Range ( datay, old_high_y );
193 cut2d -> setCutRangeAt ( currentRange, 1 );
194 m_edge = 7;
195 }
196 @@ -1894,7 +1894,7 @@
197 // Top
198 else
199 {
200 - Range currentRange = Range::Range ( old_low_y, datay );
201 + Range currentRange = Range ( old_low_y, datay );
202 cut2d -> setCutRangeAt ( currentRange, 1 );
203 m_edge = 8;
204 }
205 @@ -1924,7 +1924,7 @@
206 high= old_pos;
207 }
208
209 - Range currentRange = Range::Range ( low, high );
210 + Range currentRange = Range ( low, high );
211 cut1d -> setCutRangeAt ( currentRange , 0 );
212 }
213 notifyObservers();
214 @@ -1947,7 +1947,7 @@
215 low = datax;
216 high = old_pos_x;
217 }
218 - Range currentRange = Range::Range ( low, high );
219 + Range currentRange = Range ( low, high );
220 cut2d -> setCutRangeAt ( currentRange, 0 );
221
222 if ( datay > old_pos_y ) {
223 @@ -1958,7 +1958,7 @@
224 low = datay;
225 high = old_pos_y;
226 }
227 - currentRange = Range::Range ( low, high );
228 + currentRange = Range ( low, high );
229 cut2d -> setCutRangeAt ( currentRange, 1 );
230 }
231 notifyObservers();
232 @@ -1989,7 +1989,7 @@
233 low = datax - width/2;
234 high = datax + width/2;
235 }
236 - Range currentRange = Range::Range ( low, high );
237 + Range currentRange = Range ( low, high );
238 cut1d -> setCutRangeAt (currentRange, 0 );
239 notifyObservers();
240 }
241 @@ -2033,9 +2033,9 @@
242 high_y = datay + width_y/2;
243 }
244
245 - Range currentRange = Range::Range ( low_x, high_x );
246 + Range currentRange = Range ( low_x, high_x );
247 cut2d -> setCutRangeAt (currentRange, 0 );
248 - currentRange = Range::Range ( low_y, high_y );
249 + currentRange = Range ( low_y, high_y );
250 cut2d -> setCutRangeAt (currentRange, 1 );
251 notifyObservers();
252 }