From cb5ff01c491d4558a096fc1649b85283c36ccf91 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 6 Mar 2013 02:39:15 -0600 Subject: gras: same changes to config struct --- gnuradio-core/src/lib/runtime/gr_top_block.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gnuradio-core/src/lib') diff --git a/gnuradio-core/src/lib/runtime/gr_top_block.cc b/gnuradio-core/src/lib/runtime/gr_top_block.cc index da221c7d5..1c885be6e 100644 --- a/gnuradio-core/src/lib/runtime/gr_top_block.cc +++ b/gnuradio-core/src/lib/runtime/gr_top_block.cc @@ -59,14 +59,12 @@ void gr_top_block::run(const size_t max_items) int gr_top_block::max_noutput_items(void) const { - return this->get_global_config().maximum_output_items; + return this->global_config().maximum_output_items; } void gr_top_block::set_max_noutput_items(int max_items) { - gras::GlobalBlockConfig config = this->get_global_config(); - config.maximum_output_items = max_items; - this->set_global_config(config); + this->global_config().maximum_output_items = max_items; } void gr_top_block::run(void) -- cgit