diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-03-02 15:25:13 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-03-03 08:51:32 -0600 |
commit | 876d4150aa3da531ddd687b48afada6e43f79146 (patch) | |
tree | fd72a71419f4cd800d4e500cfcaded4dfc8dc367 /host/lib/property_tree.cpp | |
parent | 1393553d623bdf4ba40d5435c9719b6ce990d9ac (diff) | |
download | uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.gz uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.bz2 uhd-876d4150aa3da531ddd687b48afada6e43f79146.zip |
uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of
files that clang-format gets applied against.
Diffstat (limited to 'host/lib/property_tree.cpp')
-rw-r--r-- | host/lib/property_tree.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/host/lib/property_tree.cpp b/host/lib/property_tree.cpp index 599f610ad..ba9670913 100644 --- a/host/lib/property_tree.cpp +++ b/host/lib/property_tree.cpp @@ -8,9 +8,9 @@ #include <uhd/property_tree.hpp> #include <uhd/types/dict.hpp> -#include <memory> #include <boost/thread/mutex.hpp> #include <iostream> +#include <memory> #include <typeindex> using namespace uhd; @@ -157,7 +157,8 @@ public: return prop; } - void _create(const fs_path& path_, const std::shared_ptr<void>& prop, + void _create(const fs_path& path_, + const std::shared_ptr<void>& prop, std::type_index prop_type) { const fs_path path = _root / path_; @@ -172,7 +173,7 @@ public: if (node->prop.get() != NULL) throw uhd::runtime_error( "Cannot create! Property already exists at: " + path); - node->prop = prop; + node->prop = prop; node->prop_type_hash = prop_type.hash_code(); } @@ -207,7 +208,8 @@ public: if (node->prop.get() == NULL) throw uhd::runtime_error("Cannot access! Property uninitialized at: " + path); if (node->prop_type_hash != expected_prop_type.hash_code()) - throw uhd::runtime_error("Cannot access! Property types do not match at: " + path); + throw uhd::runtime_error( + "Cannot access! Property types do not match at: " + path); return node->prop; } |