From 876d4150aa3da531ddd687b48afada6e43f79146 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 2 Mar 2020 15:25:13 -0800 Subject: 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. --- host/lib/property_tree.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'host/lib/property_tree.cpp') 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 #include -#include #include #include +#include #include using namespace uhd; @@ -157,7 +157,8 @@ public: return prop; } - void _create(const fs_path& path_, const std::shared_ptr& prop, + void _create(const fs_path& path_, + const std::shared_ptr& 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; } -- cgit v1.2.3