summaryrefslogtreecommitdiff
path: root/plugins/ListeningTo/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-24 20:57:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-24 20:57:53 +0000
commit419ee3af2ba3f822b6cbd01ebaf29c10e3bcc039 (patch)
treebd51e8f53d8b96ea41b2fe35fc740e6ecee43f1e /plugins/ListeningTo/src
parentfa55da74f9c335b460e1f8e4b702e3b2ca567702 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@15027 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ListeningTo/src')
-rw-r--r--plugins/ListeningTo/src/listeningto.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/ListeningTo/src/listeningto.cpp b/plugins/ListeningTo/src/listeningto.cpp
index e504f142d2..458fb60c40 100644
--- a/plugins/ListeningTo/src/listeningto.cpp
+++ b/plugins/ListeningTo/src/listeningto.cpp
@@ -60,9 +60,9 @@ INT_PTR MainMenuClicked(WPARAM wParam, LPARAM lParam);
bool ListeningToEnabled(char *proto, bool ignoreGlobal = false);
INT_PTR ListeningToEnabled(WPARAM wParam, LPARAM lParam);
INT_PTR EnableListeningTo(WPARAM wParam, LPARAM lParam);
-INT_PTR EnableListeningTo(char *proto = NULL, bool enabled = false);
+INT_PTR EnableListeningTo(char *proto = NULL, bool enabled = false);
INT_PTR GetTextFormat(WPARAM wParam, LPARAM lParam);
-TCHAR* GetParsedFormat(LISTENINGTOINFO *lti);
+TCHAR* GetParsedFormat(LISTENINGTOINFO *lti);
INT_PTR GetParsedFormat(WPARAM wParam, LPARAM lParam);
INT_PTR GetOverrideContactOption(WPARAM wParam, LPARAM lParam);
INT_PTR GetUnknownText(WPARAM wParam, LPARAM lParam);
@@ -89,8 +89,6 @@ TCHAR* VariablesParsePlayer(ARGUMENTSINFO *ai);
#define UNKNOWN(_X_) ( _X_ == NULL || _X_[0] == _T('\0') ? opts.unknown : _X_ )
-
-
// Functions ////////////////////////////////////////////////////////////////////////////
extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
@@ -408,7 +406,6 @@ int ModulesLoaded(WPARAM, LPARAM)
StartTimer();
loaded = TRUE;
-
return 0;
}
@@ -461,8 +458,9 @@ INT_PTR MainMenuClicked(WPARAM wParam, LPARAM)
if (!loaded)
return -1;
- if (wParam < proto_items.size())
- EnableListeningTo(proto_items[wParam].proto, !ListeningToEnabled(proto_items[wParam].proto, TRUE));
+ if (wParam < proto_items.size()) {
+ ProtocolInfo &pi = proto_items[wParam]; EnableListeningTo(pi.proto, !ListeningToEnabled(pi.proto, TRUE));
+ }
return 0;
}
@@ -490,10 +488,10 @@ INT_PTR ListeningToEnabled(WPARAM wParam, LPARAM)
if (!loaded)
return -1;
- return ListeningToEnabled((char *)wParam);
+ return ListeningToEnabled((char*)wParam);
}
-ProtocolInfo *GetProtoInfo(char *proto)
+ProtocolInfo* GetProtoInfo(char *proto)
{
for (unsigned int i = 1; i < proto_items.size(); i++)
if (mir_strcmp(proto, proto_items[i].proto) == 0)