From 690dd7a33ddc90678367d73adf313533536e10f2 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Fri, 29 Apr 2016 23:57:30 +0100 Subject: Apply clang-format --- src/modules/editor/libkvieditor.cpp | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'src/modules/editor/libkvieditor.cpp') diff --git a/src/modules/editor/libkvieditor.cpp b/src/modules/editor/libkvieditor.cpp index 5b3b15ba2..1a71de977 100644 --- a/src/modules/editor/libkvieditor.cpp +++ b/src/modules/editor/libkvieditor.cpp @@ -27,7 +27,6 @@ #include "KviModule.h" #include "KviWindow.h" - KviModule * g_pEditorModulePointer = 0; KviPointerList * g_pScriptEditorWindowList = 0; @@ -59,12 +58,12 @@ static bool editor_module_cleanup(KviModule *) //qDebug("%s %s %i %s",__FILE__,__FUNCTION__,__LINE__,w->className()); if(w->inherits("KviWindow")) { - // qDebug("%s %s %i",__FILE__,__FUNCTION__,__LINE__); + // qDebug("%s %s %i",__FILE__,__FUNCTION__,__LINE__); //((KviWindow *)w)->close(); - // qDebug("%s %s %i",__FILE__,__FUNCTION__,__LINE__); + // qDebug("%s %s %i",__FILE__,__FUNCTION__,__LINE__); break; } - w = w->parent(); + w = w->parent(); } delete g_pScriptEditorWindowList->first(); } @@ -81,16 +80,15 @@ static bool editor_module_can_unload(KviModule *) } KVIRC_MODULE( - "Editor", // module name - "4.0.0", // module version - "Copyright (C) 2000 Szymon Stefanek (pragma at kvirc dot net)", // author & (C) - "Text editor extension", - editor_module_init, - editor_module_can_unload, - 0, - editor_module_cleanup, - "editor" -) + "Editor", // module name + "4.0.0", // module version + "Copyright (C) 2000 Szymon Stefanek (pragma at kvirc dot net)", // author & (C) + "Text editor extension", + editor_module_init, + editor_module_can_unload, + 0, + editor_module_cleanup, + "editor") // We want C linkage on this one: we want to be able to dlsym() it with a simple name // FIXME: Is this portable enough ? Or is better to have a table entry ? @@ -102,5 +100,5 @@ KVIMODULEEXPORTFUNC KviScriptEditor * editor_module_createScriptEditor(QWidget * KVIMODULEEXPORTFUNC void editor_module_destroyScriptEditor(KviScriptEditor * e) { - delete ((ScriptEditorImplementation *)e); + delete((ScriptEditorImplementation *)e); } -- cgit v1.3.1-10-gc9f91