aboutsummaryrefslogtreecommitdiff
path: root/math/libmath++/files/patch-math-matcher.tcc
blob: eca72518a8a39eff1b034a2c3df98dc95a5c7404 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- math++/matcher.tcc.orig	Fri Aug 13 13:11:35 2004
+++ math++/matcher.tcc	Fri Aug 13 13:15:44 2004
@@ -35,12 +35,12 @@
 
 template<class T>
 TMatchRegistry<T>::TMatchRegistry() {
-};
+}
 
 template<class T>
 TMatchRegistry<T>::TMatchRegistry(const TMatchRegistry<T>& AProto) :
     FAnyMap(AProto.FAnyMap), FNodeList(AProto.FNodeList) {
-};
+}
 
 template<class T>
 void TMatchRegistry<T>::define(const std::string& AId, const TNode<T> *ANode) {
@@ -158,7 +158,7 @@
     va_start(ap, ARight);
 
     while (TMatch<T> *p = va_arg(ap, TMatch<T> *))
-        FPatterns.push_back(p);
+        this->FPatterns.push_back(p);
 
     va_end(ap);
 }
@@ -166,7 +166,7 @@
 template<class T>
 bool TPlusMatch<T>::match(const TNode<T> *AExpr, TMatchRegistry<T> *AReg) const {
     // yet a primitive sequencial search
-    for (typename T2Match<T>::TList::const_iterator p = FPatterns.begin(); p != FPatterns.end(); ++p)
+    for (typename T2Match<T>::TList::const_iterator p = this->FPatterns.begin(); p != this->FPatterns.end(); ++p)
         if (!TMatcher<T>::match(*p, AExpr, AReg))
             return false;
 
@@ -182,7 +182,7 @@
     va_start(ap, ARight);
 
     while (TMatch<T> *p = va_arg(ap, TMatch<T> *))
-        FPatterns.push_back(p);
+        this->FPatterns.push_back(p);
 
     va_end(ap);
 }