Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /intern/ghost/intern/GHOST_EventString.h
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (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.h44
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__