diff options
author | George Hazan <ghazan@miranda.im> | 2018-08-13 11:51:22 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-08-13 11:51:29 +0300 |
commit | ef7127e9715147094e39e27edb0143aaecff695b (patch) | |
tree | 095ac791d232df9f682c7432e59b304fbc4d8ead /plugins/Variables/src/parse_external.cpp | |
parent | af5b577d924b941d85d87280b1b4df37b848e510 (diff) |
Variables:
- plugin's own hash implementation replaced with the core function;
- unused header dbhelpers.h removed;
- code cleaning
Diffstat (limited to 'plugins/Variables/src/parse_external.cpp')
-rw-r--r-- | plugins/Variables/src/parse_external.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/plugins/Variables/src/parse_external.cpp b/plugins/Variables/src/parse_external.cpp index 10de3d36cb..815d587f4a 100644 --- a/plugins/Variables/src/parse_external.cpp +++ b/plugins/Variables/src/parse_external.cpp @@ -1,25 +1,25 @@ /*
- Variables Plugin for Miranda-IM (www.miranda-im.org)
- Copyright 2003-2006 P. Boon
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Variables Plugin for Miranda-IM (www.miranda-im.org)
+ Copyright 2003-2006 P. Boon
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "stdafx.h"
-static wchar_t *getFullWinampTitleText()
+static wchar_t* getFullWinampTitleText()
{
HWND hwndWinamp = FindWindow(L"STUDIO", nullptr);
if (hwndWinamp == nullptr)
@@ -37,7 +37,7 @@ static wchar_t *getFullWinampTitleText() mir_free(szWinText);
return nullptr;
}
- wchar_t *szTitle = (wchar_t*)mir_alloc((2 * mir_wstrlen(szWinText) + 1)*sizeof(wchar_t));
+ wchar_t *szTitle = (wchar_t*)mir_alloc((2 * mir_wstrlen(szWinText) + 1) * sizeof(wchar_t));
if (szTitle == nullptr) {
mir_free(szWinText);
return nullptr;
@@ -49,7 +49,7 @@ static wchar_t *getFullWinampTitleText() return szTitle;
}
-static wchar_t *parseWinampSong(ARGUMENTSINFO *ai)
+static wchar_t* parseWinampSong(ARGUMENTSINFO *ai)
{
if (ai->argc != 1)
return nullptr;
@@ -75,7 +75,7 @@ static wchar_t *parseWinampSong(ARGUMENTSINFO *ai) return res;
}
-static wchar_t *parseWinampState(ARGUMENTSINFO *ai)
+static wchar_t* parseWinampState(ARGUMENTSINFO *ai)
{
if (ai->argc != 1)
return nullptr;
@@ -103,4 +103,4 @@ void registerExternalTokens() {
registerIntToken(WINAMPSONG, parseWinampSong, TRF_FIELD, LPGEN("External Applications") "\t" LPGEN("retrieves song name of the song currently playing in Winamp"));
registerIntToken(WINAMPSTATE, parseWinampState, TRF_FIELD, LPGEN("External Applications") "\t" LPGEN("retrieves current Winamp state (Playing/Paused/Stopped)"));
-}
\ No newline at end of file +}
|