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 /intern/ghost/intern/GHOST_EventString.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 'intern/ghost/intern/GHOST_EventString.h')
-rw-r--r-- | intern/ghost/intern/GHOST_EventString.h | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/intern/ghost/intern/GHOST_EventString.h b/intern/ghost/intern/GHOST_EventString.h index 8a1d2169708..f0d3ffb9e91 100644 --- a/intern/ghost/intern/GHOST_EventString.h +++ b/intern/ghost/intern/GHOST_EventString.h @@ -27,30 +27,32 @@ #include "GHOST_Event.h" - /** * Generic class for events with string data */ -class GHOST_EventString : public GHOST_Event -{ -public: - /** - * Constructor. - * \param msec The time this event was generated. - * \param type The type of this event. - * \param window The generating window (or NULL if system event). - * \param data_ptr Pointer to the (unformatted) data associated with the event - */ - GHOST_EventString(GHOST_TUns64 msec, GHOST_TEventType type, GHOST_IWindow *window, GHOST_TEventDataPtr data_ptr) - : GHOST_Event(msec, type, window) - { - m_data = data_ptr; - } +class GHOST_EventString : public GHOST_Event { + public: + /** + * Constructor. + * \param msec The time this event was generated. + * \param type The type of this event. + * \param window The generating window (or NULL if system event). + * \param data_ptr Pointer to the (unformatted) data associated with the event + */ + GHOST_EventString(GHOST_TUns64 msec, + GHOST_TEventType type, + GHOST_IWindow *window, + GHOST_TEventDataPtr data_ptr) + : GHOST_Event(msec, type, window) + { + m_data = data_ptr; + } - ~GHOST_EventString() - { - if (m_data) free(m_data); - } + ~GHOST_EventString() + { + if (m_data) + free(m_data); + } }; -#endif // __GHOST_EVENTSTRING_H__ +#endif // __GHOST_EVENTSTRING_H__ |