fix regression in pointer transformations

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2007-11-22 00:08:27 +00:00
1 parent f6e75a9b47
commit 3288d2df84
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -1063,6 +1063,8 @@ class TypeMatcher(object):
## Now try all the type transformations
for transf in self._transformations:
untransformed_name = transf.get_untransformed_name(canonical_name)
if untransformed_name is None:
continue
try:
return self._types[self._canonicalize_name(untransformed_name)], transf
except KeyError:
+1 -1
View File
@@ -10,7 +10,7 @@ import re
class SmartPointerTransformation(typehandlers.TypeTransformation):
def __init__(self):
self.rx = re.compile(r'MySmartPointer<(\w+)>')
self.rx = re.compile(r'(?:::)MySmartPointer<(\w+)>')
def get_untransformed_name(self, name):
m = self.rx.match(name)