aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/editor/libkvieditor.cpp
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-04-29 23:57:30 +0100
committerGravatar Alexey Sokolov2016-04-29 23:57:48 +0100
commit690dd7a33ddc90678367d73adf313533536e10f2 (patch)
tree2276fe7c384ebbc222b40a19c536d5c3c5606ce8 /src/modules/editor/libkvieditor.cpp
parentAdd config for clang-format. (diff)
downloadKVIrc-690dd7a33ddc90678367d73adf313533536e10f2.tar.gz
KVIrc-690dd7a33ddc90678367d73adf313533536e10f2.tar.bz2
KVIrc-690dd7a33ddc90678367d73adf313533536e10f2.zip
Apply clang-format
Diffstat (limited to 'src/modules/editor/libkvieditor.cpp')
-rw-r--r--src/modules/editor/libkvieditor.cpp28
1 files changed, 13 insertions, 15 deletions
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<ScriptEditorImplementation> * 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);
}