diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/freestyle/intern/system/TimeStamp.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/freestyle/intern/system/TimeStamp.h')
-rw-r--r-- | source/blender/freestyle/intern/system/TimeStamp.h | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/source/blender/freestyle/intern/system/TimeStamp.h b/source/blender/freestyle/intern/system/TimeStamp.h index adf6083a16f..2fbf83d226d 100644 --- a/source/blender/freestyle/intern/system/TimeStamp.h +++ b/source/blender/freestyle/intern/system/TimeStamp.h @@ -23,51 +23,52 @@ */ #ifdef WITH_CXX_GUARDEDALLOC -#include "MEM_guardedalloc.h" +# include "MEM_guardedalloc.h" #endif namespace Freestyle { -class TimeStamp -{ -public: - static inline TimeStamp *instance() - { - return &_instance; - } +class TimeStamp { + public: + static inline TimeStamp *instance() + { + return &_instance; + } - inline unsigned getTimeStamp() const - { - return _time_stamp; - } + inline unsigned getTimeStamp() const + { + return _time_stamp; + } - inline void increment() - { - ++_time_stamp; - } + inline void increment() + { + ++_time_stamp; + } - inline void reset() - { - _time_stamp = 1; - } + inline void reset() + { + _time_stamp = 1; + } -protected: - TimeStamp() - { - _time_stamp = 1; - } + protected: + TimeStamp() + { + _time_stamp = 1; + } - TimeStamp(const TimeStamp&) {} + TimeStamp(const TimeStamp &) + { + } -private: - static TimeStamp _instance; - unsigned _time_stamp; + private: + static TimeStamp _instance; + unsigned _time_stamp; #ifdef WITH_CXX_GUARDEDALLOC - MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:TimeStamp") + MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:TimeStamp") #endif }; } /* namespace Freestyle */ -#endif // __FREESTYLE_TIME_STAMP_H__ +#endif // __FREESTYLE_TIME_STAMP_H__ |