aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorLane Kolbly <lane.kolbly@ni.com>2021-12-23 09:07:29 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2022-02-07 14:43:46 -0600
commita7c5d70fecb7e7e37c81b0154eb3032d4d1cf6b1 (patch)
tree21f7e9430e844529454c7188e1e622647116021b /host/include
parent36cb81cc02baa142f67d2c5e9ce3c2164d2c5189 (diff)
downloaduhd-a7c5d70fecb7e7e37c81b0154eb3032d4d1cf6b1.tar.gz
uhd-a7c5d70fecb7e7e37c81b0154eb3032d4d1cf6b1.tar.bz2
uhd-a7c5d70fecb7e7e37c81b0154eb3032d4d1cf6b1.zip
host: Minor cleanups in property_tree code
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/property_tree.hpp2
-rw-r--r--host/include/uhd/property_tree.ipp3
2 files changed, 2 insertions, 3 deletions
diff --git a/host/include/uhd/property_tree.hpp b/host/include/uhd/property_tree.hpp
index 7edadcbda..9fc9b3b97 100644
--- a/host/include/uhd/property_tree.hpp
+++ b/host/include/uhd/property_tree.hpp
@@ -65,7 +65,7 @@ namespace uhd {
* - T must have an assignment operator
*/
template <typename T>
-class property : uhd::noncopyable
+class UHD_API_HEADER property : uhd::noncopyable
{
public:
typedef std::function<void(const T&)> subscriber_type;
diff --git a/host/include/uhd/property_tree.ipp b/host/include/uhd/property_tree.ipp
index b1b95c2c8..273227174 100644
--- a/host/include/uhd/property_tree.ipp
+++ b/host/include/uhd/property_tree.ipp
@@ -179,8 +179,7 @@ namespace uhd {
template <typename T>
property<T>& property_tree::create(const fs_path& path, coerce_mode_t coerce_mode)
{
- this->_create(path,
- typename std::shared_ptr<property<T> >(new property_impl<T>(coerce_mode)));
+ this->_create(path, std::make_shared<property_impl<T> >(coerce_mode));
return this->access<T>(path);
}