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/term/libkviterm.cpp | 42 ++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'src/modules/term/libkviterm.cpp') diff --git a/src/modules/term/libkviterm.cpp b/src/modules/term/libkviterm.cpp index 54361b0f3..f08890bd1 100644 --- a/src/modules/term/libkviterm.cpp +++ b/src/modules/term/libkviterm.cpp @@ -31,11 +31,11 @@ #include #ifdef COMPILE_KDE4_SUPPORT - #include "TermWidget.h" - #include "TermWindow.h" +#include "TermWidget.h" +#include "TermWindow.h" - KviPointerList * g_pTermWidgetList = 0; - KviPointerList * g_pTermWindowList = 0; +KviPointerList * g_pTermWidgetList = 0; +KviPointerList * g_pTermWindowList = 0; #endif KviModule * g_pTermModule = 0; @@ -68,14 +68,15 @@ static bool term_kvs_cmd_open(KviKvsModuleCommandCall * c) #ifdef COMPILE_KDE4_SUPPORT c->module()->lock(); // multiple locks are allowed if( - c->hasSwitch('m',"mdi") || // compat only - c->hasSwitch('d',"dockable") - ) + c->hasSwitch('m', "mdi") || // compat only + c->hasSwitch('d', "dockable")) { - TermWindow *w = new TermWindow("Terminal emulator"); + TermWindow * w = new TermWindow("Terminal emulator"); g_pMainWindow->addWindow(w); - } else { - TermWidget *w = new TermWidget(g_pMainWindow->splitter(), true); + } + else + { + TermWidget * w = new TermWidget(g_pMainWindow->splitter(), true); w->show(); } #else @@ -95,7 +96,7 @@ static bool term_module_init(KviModule * m) g_pTermWindowList->setAutoDelete(false); #endif - KVSM_REGISTER_SIMPLE_COMMAND(m,"open",term_kvs_cmd_open); + KVSM_REGISTER_SIMPLE_COMMAND(m, "open", term_kvs_cmd_open); return true; } @@ -115,13 +116,12 @@ static bool term_module_cleanup(KviModule *) } KVIRC_MODULE( - "Term", // module name - "4.0.0", // module version - "Copyright (C) 2000 Szymon Stefanek (pragma at kvirc dot net)", // author & (C) - "Terminal emulator extension based on the KonsolePart KDE class", - term_module_init, - 0, - 0, - term_module_cleanup, - 0 -) + "Term", // module name + "4.0.0", // module version + "Copyright (C) 2000 Szymon Stefanek (pragma at kvirc dot net)", // author & (C) + "Terminal emulator extension based on the KonsolePart KDE class", + term_module_init, + 0, + 0, + term_module_cleanup, + 0) -- cgit v1.3.1-10-gc9f91