From f8db8a3faa30b71dca33ced38be16d3f93f43e8a Mon Sep 17 00:00:00 2001 From: Rémi Verschelde Date: Sun, 19 Mar 2017 00:36:26 +0100 Subject: Bring that Whole New World to the Old Continent too Applies the clang-format style to the 2.1 branch as done for master in 5dbf1809c6e3e905b94b8764e99491e608122261. --- core/message_queue.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'core/message_queue.h') diff --git a/core/message_queue.h b/core/message_queue.h index 1b1a20ba9..e04530f24 100644 --- a/core/message_queue.h +++ b/core/message_queue.h @@ -38,7 +38,7 @@ class MessageQueue { enum { - DEFAULT_QUEUE_SIZE_KB=1024 + DEFAULT_QUEUE_SIZE_KB = 1024 }; Mutex *mutex; @@ -47,8 +47,8 @@ class MessageQueue { TYPE_CALL, TYPE_NOTIFICATION, TYPE_SET, - FLAG_SHOW_ERROR=1<<14, - FLAG_MASK=FLAG_SHOW_ERROR-1 + FLAG_SHOW_ERROR = 1 << 14, + FLAG_MASK = FLAG_SHOW_ERROR - 1 }; @@ -68,21 +68,21 @@ class MessageQueue { uint32_t buffer_max_used; uint32_t buffer_size; - void _call_function(Object* p_target,const StringName& p_func,const Variant *p_args,int p_argcount,bool p_show_error); + void _call_function(Object *p_target, const StringName &p_func, const Variant *p_args, int p_argcount, bool p_show_error); static MessageQueue *singleton; -public: +public: static MessageQueue *get_singleton(); - Error push_call(ObjectID p_id,const StringName& p_method,const Variant** p_args,int p_argcount,bool p_show_error=false); - Error push_call(ObjectID p_id, const StringName& p_method, VARIANT_ARG_LIST); + Error push_call(ObjectID p_id, const StringName &p_method, const Variant **p_args, int p_argcount, bool p_show_error = false); + Error push_call(ObjectID p_id, const StringName &p_method, VARIANT_ARG_LIST); Error push_notification(ObjectID p_id, int p_notification); - Error push_set(ObjectID p_id, const StringName& p_prop, const Variant& p_value); + Error push_set(ObjectID p_id, const StringName &p_prop, const Variant &p_value); - Error push_call(Object *p_object, const StringName& p_method, VARIANT_ARG_LIST); + Error push_call(Object *p_object, const StringName &p_method, VARIANT_ARG_LIST); Error push_notification(Object *p_object, int p_notification); - Error push_set(Object *p_object, const StringName& p_prop, const Variant& p_value); + Error push_set(Object *p_object, const StringName &p_prop, const Variant &p_value); bool print(); void statistics(); -- cgit v1.2.3-70-g09d2