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. --- editor/plugins/editor_preview_plugins.h | 46 +++++++++++++-------------------- 1 file changed, 18 insertions(+), 28 deletions(-) (limited to 'editor/plugins/editor_preview_plugins.h') diff --git a/editor/plugins/editor_preview_plugins.h b/editor/plugins/editor_preview_plugins.h index 2bfd0f674..50c5bad0a 100644 --- a/editor/plugins/editor_preview_plugins.h +++ b/editor/plugins/editor_preview_plugins.h @@ -33,33 +33,28 @@ class EditorTexturePreviewPlugin : public EditorResourcePreviewGenerator { public: - - virtual bool handles(const String& p_type) const; - virtual Ref generate(const RES& p_from); + virtual bool handles(const String &p_type) const; + virtual Ref generate(const RES &p_from); EditorTexturePreviewPlugin(); }; - class EditorBitmapPreviewPlugin : public EditorResourcePreviewGenerator { public: - - virtual bool handles(const String& p_type) const; - virtual Ref generate(const RES& p_from); + virtual bool handles(const String &p_type) const; + virtual Ref generate(const RES &p_from); EditorBitmapPreviewPlugin(); }; - - class EditorPackedScenePreviewPlugin : public EditorResourcePreviewGenerator { Ref _gen_from_imd(Ref p_imd); -public: - virtual bool handles(const String& p_type) const; - virtual Ref generate(const RES& p_from); - virtual Ref generate_from_path(const String& p_path); +public: + virtual bool handles(const String &p_type) const; + virtual Ref generate(const RES &p_from); + virtual Ref generate_from_path(const String &p_path); EditorPackedScenePreviewPlugin(); }; @@ -75,10 +70,10 @@ class EditorMaterialPreviewPlugin : public EditorResourcePreviewGenerator { RID light2; RID light_instance2; RID camera; -public: - virtual bool handles(const String& p_type) const; - virtual Ref generate(const RES& p_from); +public: + virtual bool handles(const String &p_type) const; + virtual Ref generate(const RES &p_from); EditorMaterialPreviewPlugin(); ~EditorMaterialPreviewPlugin(); @@ -86,24 +81,20 @@ public: class EditorScriptPreviewPlugin : public EditorResourcePreviewGenerator { public: - - virtual bool handles(const String& p_type) const; - virtual Ref generate(const RES& p_from); + virtual bool handles(const String &p_type) const; + virtual Ref generate(const RES &p_from); EditorScriptPreviewPlugin(); }; - class EditorSamplePreviewPlugin : public EditorResourcePreviewGenerator { public: - - virtual bool handles(const String& p_type) const; - virtual Ref generate(const RES& p_from); + virtual bool handles(const String &p_type) const; + virtual Ref generate(const RES &p_from); EditorSamplePreviewPlugin(); }; - class EditorMeshPreviewPlugin : public EditorResourcePreviewGenerator { RID scenario; @@ -114,14 +105,13 @@ class EditorMeshPreviewPlugin : public EditorResourcePreviewGenerator { RID light2; RID light_instance2; RID camera; -public: - virtual bool handles(const String& p_type) const; - virtual Ref generate(const RES& p_from); +public: + virtual bool handles(const String &p_type) const; + virtual Ref generate(const RES &p_from); EditorMeshPreviewPlugin(); ~EditorMeshPreviewPlugin(); }; - #endif // EDITORPREVIEWPLUGINS_H -- cgit v1.2.3-70-g09d2