Skip to content

Commit dd7a83e

Browse files
author
roman_yakovenko
committed
small bug fix
1 parent 8057cfe commit dd7a83e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygccxml/declarations/class_declaration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,8 @@ def find_noncopyable_vars( self ):
519519
if tt.is_array( no_const ):
520520
logger.debug( "__contains_noncopyable_mem_var - %s - TRUE - containes const member variable - array" % self.decl_string )
521521
noncopyable_vars.append( mvar )
522-
if tt.is_class( type_ ):
523-
cls = type_.declaration
522+
if tt.class_traits.is_my_case( type_ ):
523+
cls = tt.class_traits.get_declaration( type_ )
524524
if tt.is_noncopyable( cls ):
525525
logger.debug( "__contains_noncopyable_mem_var - %s - TRUE - containes member variable - class that is not copyable" % self.decl_string )
526526
noncopyable_vars.append( mvar )

0 commit comments

Comments
 (0)