From 83d78cdcaefe18555e83dc7cc810422616054527 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 6 Mar 2013 02:39:51 -0600 Subject: gras: top block gets same config style as block --- lib/top_block.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/top_block.cpp') diff --git a/lib/top_block.cpp b/lib/top_block.cpp index bfb0e85..fe06286 100644 --- a/lib/top_block.cpp +++ b/lib/top_block.cpp @@ -42,14 +42,14 @@ void ElementImpl::top_block_cleanup(void) << std::flush; } -GlobalBlockConfig TopBlock::get_global_config(void) const +const GlobalBlockConfig &TopBlock::global_config(void) const { return (*this)->top_config; } -void TopBlock::set_global_config(const GlobalBlockConfig &config) +GlobalBlockConfig &TopBlock::global_config(void) { - (*this)->top_config = config; + return (*this)->top_config; } void TopBlock::commit(void) -- cgit