summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
authorJosh Blum2013-03-06 02:39:15 -0600
committerJosh Blum2013-03-06 02:39:15 -0600
commitcb5ff01c491d4558a096fc1649b85283c36ccf91 (patch)
tree496544fde5577eadba028a25a920d7cd66e1729e /gnuradio-core
parente0e4eafabfc61ff492a30ee05aceebbf9cb27bcf (diff)
downloadgnuradio-cb5ff01c491d4558a096fc1649b85283c36ccf91.tar.gz
gnuradio-cb5ff01c491d4558a096fc1649b85283c36ccf91.tar.bz2
gnuradio-cb5ff01c491d4558a096fc1649b85283c36ccf91.zip
gras: same changes to config struct
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/lib/runtime/gr_top_block.cc6
1 files changed, 2 insertions, 4 deletions
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)