Add const qualifiers, minor style fixes

This commit is contained in:
Norman Feske 2012-04-08 17:44:51 +02:00
parent b81bea845d
commit 8b96f44003

View File

@ -68,13 +68,10 @@ namespace Block {
_op(op), _block_number(blk_nr),
_block_count(blk_count), _success(false) { }
Opcode operation() { return _op; }
Genode::size_t block_number() { return _block_number; }
Genode::size_t block_count() { return _block_count; }
bool succeeded() { return _success; }
Opcode operation() const { return _op; }
Genode::size_t block_number() const { return _block_number; }
Genode::size_t block_count() const { return _block_count; }
bool succeeded() const { return _success; }
void succeeded(bool b) { _success = b ? 1 : 0; }
};