diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-08-07 21:45:12 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-08-09 23:04:28 +0200 |
commit | f7bbf2c1d8d780294f3e016aff239ca35eb6516e (patch) | |
tree | e09ab6112e02b2215b2d59ac24d3d6ea2edac745 /gnuradio-runtime/lib/msg_accepter.cc | |
parent | 78431dc6941e3acc67c858277dfe4a0ed583643c (diff) |
Tree: clang-format without the include sorting
Diffstat (limited to 'gnuradio-runtime/lib/msg_accepter.cc')
-rw-r--r-- | gnuradio-runtime/lib/msg_accepter.cc | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/gnuradio-runtime/lib/msg_accepter.cc b/gnuradio-runtime/lib/msg_accepter.cc index 354fce0c3d..77870ad498 100644 --- a/gnuradio-runtime/lib/msg_accepter.cc +++ b/gnuradio-runtime/lib/msg_accepter.cc @@ -31,32 +31,29 @@ namespace gr { - msg_accepter::msg_accepter() - { - } +msg_accepter::msg_accepter() {} - msg_accepter::~msg_accepter() - { +msg_accepter::~msg_accepter() +{ // NOP, required as virtual destructor - } +} - void - msg_accepter::post(pmt::pmt_t which_port, pmt::pmt_t msg) - { +void msg_accepter::post(pmt::pmt_t which_port, pmt::pmt_t msg) +{ // Notify derived class, handled case by case - block *p = dynamic_cast<block *>(this); - if(p) { - p->_post(which_port, msg); - return; + block* p = dynamic_cast<block*>(this); + if (p) { + p->_post(which_port, msg); + return; } - hier_block2 *p2 = dynamic_cast<hier_block2 *>(this); - if(p2) { - // FIXME do the right thing - return; + hier_block2* p2 = dynamic_cast<hier_block2*>(this); + if (p2) { + // FIXME do the right thing + return; } throw std::runtime_error("unknown derived class"); - } +} } /* namespace gr */ |