From bdbdf8d3391d2da3df0d4eeabac41fa73aa821fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 20 Oct 2015 10:13:30 +0000 Subject: Omegle: Format sources git-svn-id: http://svn.miranda-ng.org/main/trunk@15579 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/src/main.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'protocols/Omegle/src/main.cpp') diff --git a/protocols/Omegle/src/main.cpp b/protocols/Omegle/src/main.cpp index be47e64da6..445e15ca0d 100644 --- a/protocols/Omegle/src/main.cpp +++ b/protocols/Omegle/src/main.cpp @@ -54,7 +54,7 @@ static int compare_protos(const OmegleProto *p1, const OmegleProto *p2) OBJLIST g_Instances(1, compare_protos); -DWORD WINAPI DllMain(HINSTANCE hInstance,DWORD,LPVOID) +DWORD WINAPI DllMain(HINSTANCE hInstance, DWORD, LPVOID) { g_hInstance = hInstance; return TRUE; @@ -69,12 +69,12 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda ///////////////////////////////////////////////////////////////////////////////////////// // Interface information -extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST}; +extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST }; ///////////////////////////////////////////////////////////////////////////////////////// // Load -static PROTO_INTERFACE* protoInit(const char *proto_name,const TCHAR *username ) +static PROTO_INTERFACE* protoInit(const char *proto_name, const TCHAR *username) { OmegleProto *proto = new OmegleProto(proto_name, username); g_Instances.insert(proto); @@ -83,7 +83,7 @@ static PROTO_INTERFACE* protoInit(const char *proto_name,const TCHAR *username ) static int protoUninit(PROTO_INTERFACE* proto) { - g_Instances.remove(( OmegleProto* )proto); + g_Instances.remove((OmegleProto*)proto); return EXIT_SUCCESS; } @@ -109,23 +109,23 @@ extern "C" int __declspec(dllexport) Load(void) { std::stringstream agent; agent << "Miranda NG/"; - agent << (( g_mirandaVersion >> 24) & 0xFF); + agent << ((g_mirandaVersion >> 24) & 0xFF); agent << "."; - agent << (( g_mirandaVersion >> 16) & 0xFF); + agent << ((g_mirandaVersion >> 16) & 0xFF); agent << "."; - agent << (( g_mirandaVersion >> 8) & 0xFF); + agent << ((g_mirandaVersion >> 8) & 0xFF); agent << "."; - agent << (( g_mirandaVersion ) & 0xFF); - #ifdef _WIN64 + agent << ((g_mirandaVersion)& 0xFF); +#ifdef _WIN64 agent << " Omegle Protocol x64/"; - #else +#else agent << " Omegle Protocol/"; - #endif +#endif agent << __VERSION_STRING_DOTS; - g_strUserAgent = agent.str( ); + g_strUserAgent = agent.str(); } - return 0; + return 0; } ///////////////////////////////////////////////////////////////////////////////////////// @@ -134,7 +134,7 @@ extern "C" int __declspec(dllexport) Load(void) extern "C" int __declspec(dllexport) Unload(void) { //UninitContactMenus(); - for(size_t i=0; i<_countof(g_hEvents); i++) + for (size_t i = 0; i < _countof(g_hEvents); i++) UnhookEvent(g_hEvents[i]); return 0; -- cgit v1.2.3