Add const to empty and size functions (#1124)

This commit is contained in:
Paul Fultz II 2018-03-19 03:58:22 -05:00 committed by Daniel Marjamäki
parent 0d3ddd85b1
commit 4ef445e228
2 changed files with 9 additions and 1 deletions

View File

@ -290,6 +290,7 @@
<!-- int QStringList::size() const --> <!-- int QStringList::size() const -->
<function name="QList::count,QList::length,QList::size,QString::count,QString::length,QString::size,QStringList::count,QStringList::length,QStringList::size"> <function name="QList::count,QList::length,QList::size,QString::count,QString::length,QString::size,QStringList::count,QStringList::length,QStringList::size">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<const/>
<use-retval/> <use-retval/>
<returnValue type="signed int"/> <returnValue type="signed int"/>
<const/> <const/>
@ -300,8 +301,9 @@
<!-- bool QString::isNull() const --> <!-- bool QString::isNull() const -->
<!-- bool QStringList::empty() const --> <!-- bool QStringList::empty() const -->
<!-- bool QStringList::isEmpty() 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> <noreturn>false</noreturn>
<const/>
<use-retval/> <use-retval/>
<returnValue type="bool"/> <returnValue type="bool"/>
<const/> <const/>

View File

@ -5899,6 +5899,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</function> </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"> <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/> <use-retval/>
<const/>
<returnValue type="bool"/> <returnValue type="bool"/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
</function> </function>
@ -5922,6 +5923,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</function> </function>
<function name="std::list::find,std::map::find,std::set::find,std::vector::find"> <function name="std::list::find,std::map::find,std::set::find,std::vector::find">
<use-retval/> <use-retval/>
<const/>
<returnValue type="iterator"/> <returnValue type="iterator"/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<arg nr="1"> <arg nr="1">
@ -5930,6 +5932,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</function> </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"> <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/> <use-retval/>
<const/>
<returnValue type="std::size_t"/> <returnValue type="std::size_t"/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
</function> </function>
@ -5983,6 +5986,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</function> </function>
<function name="std::string::c_str,std::string::data"> <function name="std::string::c_str,std::string::data">
<use-retval/> <use-retval/>
<const/>
<returnValue type="const char *"/> <returnValue type="const char *"/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
</function> </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; --> <!-- 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"> <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/> <use-retval/>
<const/>
<returnValue type="size_t"/> <returnValue type="size_t"/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -6017,6 +6022,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
</arg> </arg>
</function> </function>
<function name="std::string::length,std::wstring::length,std::basic_string::size,std::basic_string::length"> <function name="std::string::length,std::wstring::length,std::basic_string::size,std::basic_string::length">
<const/>
<use-retval/> <use-retval/>
<returnValue type="std::size_t"/> <returnValue type="std::size_t"/>
<noreturn>false</noreturn> <noreturn>false</noreturn>