Replace use of 'typedef' by 'using'

Issue #5227
This commit is contained in:
Norman Feske
2024-06-28 17:20:59 +02:00
parent 361557e1f0
commit 19c13877ca
442 changed files with 1306 additions and 1349 deletions

View File

@ -20,10 +20,10 @@
namespace Block {
typedef Genode::uint64_t block_number_t;
typedef Genode::size_t block_count_t;
typedef Genode::off_t off_t;
typedef Genode::uint64_t seek_off_t;
using block_number_t = Genode::uint64_t;
using block_count_t = Genode::size_t;
using off_t = Genode::off_t;
using seek_off_t = Genode::uint64_t;
struct Operation;
struct Request;

View File

@ -111,7 +111,7 @@ class Block::Request_stream : Genode::Noncopyable
Packet_stream_tx::Rpc_object<Block::Session::Tx> _tx;
typedef Genode::Packet_stream_sink<Block::Session::Tx_policy> Tx_sink;
using Tx_sink = Genode::Packet_stream_sink<Block::Session::Tx_policy>;
Payload const _payload;
@ -182,7 +182,7 @@ class Block::Request_stream : Genode::Noncopyable
if (!tx_sink.packet_avail())
return;
typedef Block::Packet_descriptor Packet_descriptor;
using Packet_descriptor = Block::Packet_descriptor;
Packet_descriptor const packet = tx_sink.peek_packet();
@ -261,7 +261,7 @@ class Block::Request_stream : Genode::Noncopyable
return;
}
typedef Block::Packet_descriptor Packet_descriptor;
using Packet_descriptor = Block::Packet_descriptor;
Packet_descriptor::Payload
payload { .offset = request.offset,
.bytes = request.operation.count * _block_size };