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/ProgressBar.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/ProgressBar.h')
-rw-r--r-- | source/blender/freestyle/intern/system/ProgressBar.h | 111 |
1 files changed, 56 insertions, 55 deletions
diff --git a/source/blender/freestyle/intern/system/ProgressBar.h b/source/blender/freestyle/intern/system/ProgressBar.h index d3589987202..b3a1f98f15e 100644 --- a/source/blender/freestyle/intern/system/ProgressBar.h +++ b/source/blender/freestyle/intern/system/ProgressBar.h @@ -25,71 +25,72 @@ #include <string> #ifdef WITH_CXX_GUARDEDALLOC -#include "MEM_guardedalloc.h" +# include "MEM_guardedalloc.h" #endif using namespace std; namespace Freestyle { -class ProgressBar -{ -public: - inline ProgressBar() - { - _numtotalsteps = 0; - _progress = 0; - } - - virtual ~ProgressBar() {} - - virtual void reset() - { - _numtotalsteps = 0; - _progress = 0; - } - - virtual void setTotalSteps(unsigned n) - { - _numtotalsteps = n; - } - - virtual void setProgress(unsigned i) - { - _progress = i; - } - - virtual void setLabelText(const string& s) - { - _label = s; - } - - /*! accessors */ - inline unsigned int getTotalSteps() const - { - return _numtotalsteps; - } - - inline unsigned int getProgress() const - { - return _progress; - } - - inline string getLabelText() const - { - return _label; - } - -protected: - unsigned _numtotalsteps; - unsigned _progress; - string _label; +class ProgressBar { + public: + inline ProgressBar() + { + _numtotalsteps = 0; + _progress = 0; + } + + virtual ~ProgressBar() + { + } + + virtual void reset() + { + _numtotalsteps = 0; + _progress = 0; + } + + virtual void setTotalSteps(unsigned n) + { + _numtotalsteps = n; + } + + virtual void setProgress(unsigned i) + { + _progress = i; + } + + virtual void setLabelText(const string &s) + { + _label = s; + } + + /*! accessors */ + inline unsigned int getTotalSteps() const + { + return _numtotalsteps; + } + + inline unsigned int getProgress() const + { + return _progress; + } + + inline string getLabelText() const + { + return _label; + } + + protected: + unsigned _numtotalsteps; + unsigned _progress; + string _label; #ifdef WITH_CXX_GUARDEDALLOC - MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ProgressBar") + MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ProgressBar") #endif }; } /* namespace Freestyle */ -#endif // __FREESTYLE_PROGRESS_BAR_H__ +#endif // __FREESTYLE_PROGRESS_BAR_H__ |