Add const to empty and size functions (#1124)
This commit is contained in:
parent
0d3ddd85b1
commit
4ef445e228
|
@ -290,6 +290,7 @@
|
|||
<!-- int QStringList::size() const -->
|
||||
<function name="QList::count,QList::length,QList::size,QString::count,QString::length,QString::size,QStringList::count,QStringList::length,QStringList::size">
|
||||
<noreturn>false</noreturn>
|
||||
<const/>
|
||||
<use-retval/>
|
||||
<returnValue type="signed int"/>
|
||||
<const/>
|
||||
|
@ -300,8 +301,9 @@
|
|||
<!-- bool QString::isNull() const -->
|
||||
<!-- bool QStringList::empty() const -->
|
||||
<!-- bool QStringList::isEmpty() const -->
|
||||
<function name="QList::empty,QList::isEmpty::QString::isEmpty,QString::isNull,QStringList::empty,QStringList::isEmpty::">
|
||||
<function name="QList::empty,QList::isEmpty,QString::isEmpty,QString::isNull,QStringList::empty,QStringList::isEmpty">
|
||||
<noreturn>false</noreturn>
|
||||
<const/>
|
||||
<use-retval/>
|
||||
<returnValue type="bool"/>
|
||||
<const/>
|
||||
|
|
|
@ -5899,6 +5899,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
|
|||
</function>
|
||||
<function name="std::array::empty,std::deque::empty,std::list::empty,std::forward_list::empty,std::map::empty,std::unordered_map::empty,std::queue::empty,std::set::empty,std::unordered_set::empty,std::stack::empty,std::string::empty,std::wstring::empty,std::basic_string::empty,std::vector::empty">
|
||||
<use-retval/>
|
||||
<const/>
|
||||
<returnValue type="bool"/>
|
||||
<noreturn>false</noreturn>
|
||||
</function>
|
||||
|
@ -5922,6 +5923,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
|
|||
</function>
|
||||
<function name="std::list::find,std::map::find,std::set::find,std::vector::find">
|
||||
<use-retval/>
|
||||
<const/>
|
||||
<returnValue type="iterator"/>
|
||||
<noreturn>false</noreturn>
|
||||
<arg nr="1">
|
||||
|
@ -5930,6 +5932,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
|
|||
</function>
|
||||
<function name="std::deque::size,std::deque::max_size,std::list::size,std::list::max_size,std::map::size,std::map::max_size,std::unordered_map::size,std::unordered_map::max_size,std::queue::size,std::set::size,std::set::max_size,std::unordered_set::size,std::unordered_set::max_size,std::stack::size,std::string::size,std::wstring::size,std::vector::size,std::vector::capacity,std::vector::max_size,std::array::size,std::array::max_size">
|
||||
<use-retval/>
|
||||
<const/>
|
||||
<returnValue type="std::size_t"/>
|
||||
<noreturn>false</noreturn>
|
||||
</function>
|
||||
|
@ -5983,6 +5986,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
|
|||
</function>
|
||||
<function name="std::string::c_str,std::string::data">
|
||||
<use-retval/>
|
||||
<const/>
|
||||
<returnValue type="const char *"/>
|
||||
<noreturn>false</noreturn>
|
||||
</function>
|
||||
|
@ -6001,6 +6005,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
|
|||
<!-- size_t rfind (char c, size_t pos = npos) const noexcept; -->
|
||||
<function name="std::basic_string::find_last_not_of,std::string::find_last_not_of,std::wstring::find_last_not_of,std::basic_string::find_first_not_of,std::string::find_first_not_of,std::wstring::find_first_not_of,std::string::find,std::string::rfind,std::wstring::find,std::wstring::rfind,std::basic_string::find,std::basic_string::rfind,std::string::find_first_of,std::wstring::find_first_of,std::basic_string::find_first_of,std::string::find_last_of,std::wstring::find_last_of,std::basic_string::find_last_of">
|
||||
<use-retval/>
|
||||
<const/>
|
||||
<returnValue type="size_t"/>
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
|
@ -6017,6 +6022,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
|
|||
</arg>
|
||||
</function>
|
||||
<function name="std::string::length,std::wstring::length,std::basic_string::size,std::basic_string::length">
|
||||
<const/>
|
||||
<use-retval/>
|
||||
<returnValue type="std::size_t"/>
|
||||
<noreturn>false</noreturn>
|
||||
|
|
Loading…
Reference in New Issue