From 921af9977788b14bc2b9816a0e3c378736bb8d0d Mon Sep 17 00:00:00 2001 From: Mikael Arguedas Date: Fri, 29 Sep 2017 07:51:00 -0700 Subject: [PATCH] update style to match latest uncrustify --- .../depthimage_to_pointcloud2/depth_traits.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/depthimage_to_pointcloud2/include/depthimage_to_pointcloud2/depth_traits.hpp b/depthimage_to_pointcloud2/include/depthimage_to_pointcloud2/depth_traits.hpp index 6101b8e..fb2e851 100644 --- a/depthimage_to_pointcloud2/include/depthimage_to_pointcloud2/depth_traits.hpp +++ b/depthimage_to_pointcloud2/include/depthimage_to_pointcloud2/depth_traits.hpp @@ -50,18 +50,18 @@ struct DepthTraits {}; template<> struct DepthTraits { - static inline bool valid(uint16_t depth) {return depth != 0; } - static inline float toMeters(uint16_t depth) {return depth * 0.001f; } // originally mm - static inline uint16_t fromMeters(float depth) {return (depth * 1000.0f) + 0.5f; } + static inline bool valid(uint16_t depth) {return depth != 0;} + static inline float toMeters(uint16_t depth) {return depth * 0.001f;} // originally mm + static inline uint16_t fromMeters(float depth) {return (depth * 1000.0f) + 0.5f;} static inline void initializeBuffer(std::vector &) {} // Do nothing }; template<> struct DepthTraits { - static inline bool valid(float depth) {return std::isfinite(depth); } - static inline float toMeters(float depth) {return depth; } - static inline float fromMeters(float depth) {return depth; } + static inline bool valid(float depth) {return std::isfinite(depth);} + static inline float toMeters(float depth) {return depth;} + static inline float fromMeters(float depth) {return depth;} static inline void initializeBuffer(std::vector & buffer) {