diff options
| author | 2016-04-29 23:57:30 +0100 | |
|---|---|---|
| committer | 2016-04-29 23:57:48 +0100 | |
| commit | 690dd7a33ddc90678367d73adf313533536e10f2 (patch) | |
| tree | 2276fe7c384ebbc222b40a19c536d5c3c5606ce8 /src/modules/channelsjoin/libkvichannelsjoin.cpp | |
| parent | Add config for clang-format. (diff) | |
| download | KVIrc-690dd7a33ddc90678367d73adf313533536e10f2.tar.gz KVIrc-690dd7a33ddc90678367d73adf313533536e10f2.tar.bz2 KVIrc-690dd7a33ddc90678367d73adf313533536e10f2.zip | |
Apply clang-format
Diffstat (limited to 'src/modules/channelsjoin/libkvichannelsjoin.cpp')
| -rw-r--r-- | src/modules/channelsjoin/libkvichannelsjoin.cpp | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/src/modules/channelsjoin/libkvichannelsjoin.cpp b/src/modules/channelsjoin/libkvichannelsjoin.cpp index 7af136d9e..2d1fca457 100644 --- a/src/modules/channelsjoin/libkvichannelsjoin.cpp +++ b/src/modules/channelsjoin/libkvichannelsjoin.cpp @@ -33,7 +33,7 @@ #include <QSplitter> ChannelsJoinDialog * g_pChannelsWindow = 0; -QRect g_rectChannelsJoinGeometry; +QRect g_rectChannelsJoinGeometry; /* @doc: channelsjoin.open @@ -53,7 +53,8 @@ QRect g_rectChannelsJoinGeometry; static bool channelsjoin_kvs_cmd_open(KviKvsModuleCommandCall * c) { - if(!g_pChannelsWindow)g_pChannelsWindow = new ChannelsJoinDialog("channelsjoin"); + if(!g_pChannelsWindow) + g_pChannelsWindow = new ChannelsJoinDialog("channelsjoin"); g_pChannelsWindow->setConsole(c->window()->console()); @@ -68,23 +69,24 @@ static bool channelsjoin_module_init(KviModule * m) { QString fName; m->getDefaultConfigFileName(fName); - KviConfigurationFile cfg(fName,KviConfigurationFile::Read); + KviConfigurationFile cfg(fName, KviConfigurationFile::Read); - g_rectChannelsJoinGeometry = cfg.readRectEntry("geometry",QRect(30,30,320,410)); + g_rectChannelsJoinGeometry = cfg.readRectEntry("geometry", QRect(30, 30, 320, 410)); - KVSM_REGISTER_SIMPLE_COMMAND(m,"open",channelsjoin_kvs_cmd_open); + KVSM_REGISTER_SIMPLE_COMMAND(m, "open", channelsjoin_kvs_cmd_open); return true; } -static bool channelsjoin_module_cleanup(KviModule *m) +static bool channelsjoin_module_cleanup(KviModule * m) { QString fName; m->getDefaultConfigFileName(fName); - KviConfigurationFile cfg(fName,KviConfigurationFile::Write); + KviConfigurationFile cfg(fName, KviConfigurationFile::Write); - cfg.writeEntry("geometry",g_rectChannelsJoinGeometry); + cfg.writeEntry("geometry", g_rectChannelsJoinGeometry); - if (g_pChannelsWindow)delete g_pChannelsWindow; + if(g_pChannelsWindow) + delete g_pChannelsWindow; g_pChannelsWindow = 0; return true; } @@ -95,13 +97,12 @@ static bool channelsjoin_module_can_unload(KviModule *) } KVIRC_MODULE( - "ChannelsJoin", - "4.0.0", - "Copyright (C) 2001-2006 Juanjo Alvarez (juanjux@yahoo.es), Alexey (wizard@opendoor.ru)", - "Window to join channels in a GUI", - channelsjoin_module_init, - channelsjoin_module_can_unload, - 0, - channelsjoin_module_cleanup, - 0 -) + "ChannelsJoin", + "4.0.0", + "Copyright (C) 2001-2006 Juanjo Alvarez (juanjux@yahoo.es), Alexey (wizard@opendoor.ru)", + "Window to join channels in a GUI", + channelsjoin_module_init, + channelsjoin_module_can_unload, + 0, + channelsjoin_module_cleanup, + 0) |
