View | Details | Raw Unified | Return to bug 179225
Collapse All | Expand All

(-)graphics/qslim/files/patch-mixkit__src__MxDynBlock.h (+29 lines)
Line 0 Link Here
1
--- mixkit/src/MxDynBlock.h.orig
2
+++ mixkit/src/MxDynBlock.h
3
@@ -35,13 +35,13 @@
4
 
5
     void room_for(int len)
6
     {
7
-	if( length()<len ) resize(len);
8
+	if( length()<len ) this->resize(len);
9
 	fill = len;
10
     }
11
 
12
     T& add()
13
     {
14
-	if( length()==total_space() )  resize(total_space() * 2);
15
+	if( length()==total_space() )  this->resize(total_space() * 2);
16
 	fill++;
17
 	return last();
18
     }
19
@@ -62,8 +62,8 @@
20
     //
21
     int size() const { return length(); }
22
 
23
-    typename MxBlock<T>::iterator end()       { return begin()+size(); }
24
-    typename MxBlock<T>::const_iterator end() const { return begin()+size(); }
25
+    typename MxBlock<T>::iterator end()       { return this->begin()+size(); }
26
+    typename MxBlock<T>::const_iterator end() const { return this->begin()+size(); }
27
 
28
     void push_back(const T& t) { add(t); }
29
 };
(-)graphics/qslim/files/patch-mixkit__src__MxStack.h (+31 lines)
Line 0 Link Here
1
--- mixkit/src/MxStack.h.orig
2
+++ mixkit/src/MxStack.h
3
@@ -26,14 +26,14 @@
4
     MxStack(const T& val, unsigned int n) : MxDynBlock<T>(n)
5
 	{ push(val); }
6
 
7
-    T&       top()       { return last(); }
8
-    const T& top() const { return last(); }
9
+    T&       top()       { return this->last(); }
10
+    const T& top() const { return this->last(); }
11
 
12
-    bool is_empty() { return length()==0; }
13
+    bool is_empty() { return this->length()==0; }
14
 
15
-    T& pop() { return drop(); }
16
+    T& pop() { return this->drop(); }
17
 
18
-    void push(const T& val) { add(val); }
19
+    void push(const T& val) { this->add(val); }
20
     //
21
     // NOTE: In this code, it is *crucial* that we do the add() and
22
     //       assignment in separate steps.  The obvious alternative
23
@@ -41,7 +41,7 @@
24
     //       broken!  The top() will grab a pointer into the block,
25
     //       but the add() may reallocate the block before doing the
26
     //       assignment.  Thus, the pointer will become invalid.
27
-    void push() { add(); top() = (*this)[length()-2]; }
28
+    void push() { this->add(); top() = (*this)[this->length()-2]; }
29
 };
30
 
31
 // MXSTACK_INCLUDED
(-)graphics/qslim/files/patch-tools-qslim_qvis.cxx (+9 lines)
Lines 9-11 Link Here
9
 #include <FL/filename.H>
9
 #include <FL/filename.H>
10
 #include <FL/filename.H>
10
 #include <FL/filename.H>
11
 #include <FL/Fl_Slider.H>
11
 #include <FL/Fl_Slider.H>
12
@@ -228,7 +228,7 @@
13
 // Main application routine
14
 //
15
 
16
-main(int argc, char **argv)
17
+int main(int argc, char **argv)
18
 {
19
     // Change default values for application variables in GUI version
20
     will_record_history = true;
(-)graphics/qslim/files/patch-tools__qslim__qslim.cxx (+11 lines)
Line 0 Link Here
1
--- tools/qslim/qslim.cxx.orig
2
+++ tools/qslim/qslim.cxx
3
@@ -32,7 +32,7 @@
4
     output_preamble();
5
 }
6
 
7
-main(int argc, char **argv)
8
+int main(int argc, char **argv)
9
 {
10
     double input_time, init_time, slim_time, output_time;
11

Return to bug 179225