Skip to content

Commit 24b0442

Browse files
committed
Fix broken get_by_name method
There was a typo introduced during previous refactorings. Obviously the check should be done with the class_traits module. This part of the code was untested so the error was not noticed. Unit tests will follow soon.
1 parent 490ca87 commit 24b0442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygccxml/declarations/smart_pointer_traits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class internal_type_traits(object):
1717
# TODO: add exists function
1818
@staticmethod
1919
def get_by_name(type_, name):
20-
if class_declaration_traits.is_my_case(type_):
20+
if class_traits.is_my_case(type_):
2121
cls = class_traits.declaration_class(type_)
2222
return type_traits.remove_declarated(
2323
cls.typedef(name, recursive=False).decl_type)

0 commit comments

Comments
 (0)