Skip to content

Commit c3558df

Browse files
committed
COMP: Remove use of deprecated 'count()' function
PythonQt/generator/parser/name_compiler.cpp:111:46: \ warning: 'count' is deprecated: Use size() or length() instead. [-Wdeprecated-declarations]
1 parent 37b0d31 commit c3558df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/parser/name_compiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void NameCompiler::visitUnqualifiedName(UnqualifiedNameAST *node)
108108
// ### cleanup
109109
_M_name.last() += QLatin1String("<");
110110
visitNodes(this, node->template_arguments);
111-
_M_name.last().truncate(_M_name.last().count() - 1); // remove the last ','
111+
_M_name.last().truncate(_M_name.last().length() - 1); // remove the last ','
112112
_M_name.last() += QLatin1String(">");
113113
}
114114

0 commit comments

Comments
 (0)