aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorsteviez <steve.czabaniuk@ni.com>2020-02-11 13:11:33 -0600
committeratrnati <54334261+atrnati@users.noreply.github.com>2020-02-18 13:36:57 -0600
commite6e1cad743d04f79148c92bab774fed183ff43a6 (patch)
tree6414180a32016f7bed17e420ea4c1df074f93aab /host/include
parent28bf20a19c98c7e99a67d7186d539aea28133df0 (diff)
downloaduhd-e6e1cad743d04f79148c92bab774fed183ff43a6.tar.gz
uhd-e6e1cad743d04f79148c92bab774fed183ff43a6.tar.bz2
uhd-e6e1cad743d04f79148c92bab774fed183ff43a6.zip
rfnoc: actions: Cleanup rx_event_action_info ctor
Set error code member variable in rx_event_action_info constructor instead of relying on the caller to set it after object creation
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/rfnoc/actions.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/include/uhd/rfnoc/actions.hpp b/host/include/uhd/rfnoc/actions.hpp
index 681a9da3d..52e6b9287 100644
--- a/host/include/uhd/rfnoc/actions.hpp
+++ b/host/include/uhd/rfnoc/actions.hpp
@@ -70,13 +70,13 @@ public:
using sptr = std::shared_ptr<rx_event_action_info>;
//! The error code that describes the event
- uhd::rx_metadata_t::error_code_t error_code = uhd::rx_metadata_t::ERROR_CODE_NONE;
+ uhd::rx_metadata_t::error_code_t error_code;
//! Factory function
- static sptr make();
+ static sptr make(uhd::rx_metadata_t::error_code_t error_code);
-private:
- rx_event_action_info();
+protected:
+ rx_event_action_info(uhd::rx_metadata_t::error_code_t error_code);
};
struct UHD_API tx_event_action_info : public action_info