From 8b96f44003f645dcbea5b769322e66b6fef149b1 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Sun, 8 Apr 2012 17:44:51 +0200 Subject: [PATCH] Add const qualifiers, minor style fixes --- os/include/block_session/block_session.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/os/include/block_session/block_session.h b/os/include/block_session/block_session.h index 7f7160001..be3c1e768 100644 --- a/os/include/block_session/block_session.h +++ b/os/include/block_session/block_session.h @@ -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; } };