mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 15:43:56 +00:00
base: Add const qualifiers to 'util/list.h'
This patch adds support for iterating through a const list. This allows users of lists to be more rigid with regard to constness. Furthermore, the patch adds the function 'List::insert_at' for inserting an element at a specified position. By adding this function, we can remove code duplication in nitpicker.
This commit is contained in:
@ -157,7 +157,7 @@ namespace Input {
|
||||
*
|
||||
* \return total number of available input events
|
||||
*/
|
||||
Genode::size_t flush_sources(Event *dst, Genode::size_t dst_max) const
|
||||
Genode::size_t flush_sources(Event *dst, Genode::size_t dst_max)
|
||||
{
|
||||
Genode::size_t dst_count = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user