From ac3e70f6ba1336e6a195907b6adbe23eb267c62f Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 3 Jun 2015 01:32:10 +0300 Subject: [PATCH] Insignificant formatting fixes (uncrustify is not smart enough) --- .../uavcan_posix/basic_file_server_backend.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/libuavcan_drivers/posix/include/uavcan_posix/basic_file_server_backend.hpp b/libuavcan_drivers/posix/include/uavcan_posix/basic_file_server_backend.hpp index 764a5a4e42..1615b06a6a 100644 --- a/libuavcan_drivers/posix/include/uavcan_posix/basic_file_server_backend.hpp +++ b/libuavcan_drivers/posix/include/uavcan_posix/basic_file_server_backend.hpp @@ -64,12 +64,10 @@ protected: class FDCache : public FDCacheBase, protected uavcan::TimerBase { - /* Age in Seconds an entry will stay in the cache if not accessed. */ - + /// Age in Seconds an entry will stay in the cache if not accessed. enum { MaxAgeSeconds = 7 }; - /* Rate in Seconds that the cache will be flushed of stale entries. */ - + /// Rate in Seconds that the cache will be flushed of stale entries. enum { GarbageCollectionSeconds = 60 }; class FDCacheItem @@ -85,16 +83,16 @@ protected: public: enum { InvalidFD = -1 }; - FDCacheItem() - : next_(NULL), + FDCacheItem() : + next_(NULL), last_access_(0), fd_(InvalidFD), oflags_(0), path_(0) { } - FDCacheItem(int fd, const char* path, int oflags) - : next_(NULL), + FDCacheItem(int fd, const char* path, int oflags) : + next_(NULL), last_access_(0), fd_(fd), oflags_(oflags),