diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-10-20 10:13:30 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-10-20 10:13:30 +0000 |
commit | bdbdf8d3391d2da3df0d4eeabac41fa73aa821fa (patch) | |
tree | 366121a22bc6eef039eacb0aafff85c03e4dd605 /protocols/Omegle/src/main.cpp | |
parent | d49489f3467a02953b77cd5869bec5c061b63aa1 (diff) |
Omegle: Format sources
git-svn-id: http://svn.miranda-ng.org/main/trunk@15579 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Omegle/src/main.cpp')
-rw-r--r-- | protocols/Omegle/src/main.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
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<OmegleProto> 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;
|