diff options
author | Josh Blum | 2013-03-06 02:39:51 -0600 |
---|---|---|
committer | Josh Blum | 2013-03-06 02:39:51 -0600 |
commit | 83d78cdcaefe18555e83dc7cc810422616054527 (patch) | |
tree | 8718ae0b697b0c46c6f2c90552627a87ca91cba6 /lib | |
parent | 9f7169ecd0c8349fc33ad933c9dc5f23ac538146 (diff) | |
download | sandhi-83d78cdcaefe18555e83dc7cc810422616054527.tar.gz sandhi-83d78cdcaefe18555e83dc7cc810422616054527.tar.bz2 sandhi-83d78cdcaefe18555e83dc7cc810422616054527.zip |
gras: top block gets same config style as block
Diffstat (limited to 'lib')
-rw-r--r-- | lib/top_block.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) |