Add const qualifiers, minor style fixes
This commit is contained in:
parent
b81bea845d
commit
8b96f44003
|
@ -68,13 +68,10 @@ namespace Block {
|
||||||
_op(op), _block_number(blk_nr),
|
_op(op), _block_number(blk_nr),
|
||||||
_block_count(blk_count), _success(false) { }
|
_block_count(blk_count), _success(false) { }
|
||||||
|
|
||||||
Opcode operation() { return _op; }
|
Opcode operation() const { return _op; }
|
||||||
|
Genode::size_t block_number() const { return _block_number; }
|
||||||
Genode::size_t block_number() { return _block_number; }
|
Genode::size_t block_count() const { return _block_count; }
|
||||||
|
bool succeeded() const { return _success; }
|
||||||
Genode::size_t block_count() { return _block_count; }
|
|
||||||
|
|
||||||
bool succeeded() { return _success; }
|
|
||||||
|
|
||||||
void succeeded(bool b) { _success = b ? 1 : 0; }
|
void succeeded(bool b) { _success = b ? 1 : 0; }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user