summaryrefslogtreecommitdiff
path: root/plugins/AvatarHistory/src
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2015-04-24 23:07:58 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2015-04-24 23:07:58 +0000
commit4294963c06cca6c22fe273a8e3366ec4159ab76c (patch)
tree8140eaeab3fdb04cd512a5046ed74de171fbf3a3 /plugins/AvatarHistory/src
parent8f3240800df19a4ad1025768f4c595ab49bb898f (diff)
AvatarHistory - common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@13119 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AvatarHistory/src')
-rw-r--r--plugins/AvatarHistory/src/AvatarDlg.cpp4
-rw-r--r--plugins/AvatarHistory/src/AvatarHistory.cpp14
-rw-r--r--plugins/AvatarHistory/src/icolib.cpp6
-rw-r--r--plugins/AvatarHistory/src/options.cpp4
-rw-r--r--plugins/AvatarHistory/src/popup.cpp2
-rw-r--r--plugins/AvatarHistory/src/stdafx.cxx (renamed from plugins/AvatarHistory/src/stdafx.cpp)2
-rw-r--r--plugins/AvatarHistory/src/stdafx.h (renamed from plugins/AvatarHistory/src/AvatarHistory.h)2
-rw-r--r--plugins/AvatarHistory/src/utils.cpp2
8 files changed, 17 insertions, 19 deletions
diff --git a/plugins/AvatarHistory/src/AvatarDlg.cpp b/plugins/AvatarHistory/src/AvatarDlg.cpp
index 5746cd3053..2fc20eeaa1 100644
--- a/plugins/AvatarHistory/src/AvatarDlg.cpp
+++ b/plugins/AvatarHistory/src/AvatarDlg.cpp
@@ -18,7 +18,7 @@ Avatar History Plugin
*/
-#include "AvatarHistory.h"
+#include "stdafx.h"
HGENMENU hMenu = NULL;
DWORD WINAPI AvatarDialogThread(LPVOID param);
@@ -512,7 +512,7 @@ int CleanupAvatarPic(HWND hwnd)
return 0;
}
-int PreBuildContactMenu(WPARAM wParam,LPARAM lParam)
+int PreBuildContactMenu(WPARAM wParam, LPARAM)
{
char *proto = GetContactProto(wParam);
Menu_ShowItem(hMenu, ProtocolEnabled(proto));
diff --git a/plugins/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp
index 1f98aa149a..5280fc2064 100644
--- a/plugins/AvatarHistory/src/AvatarHistory.cpp
+++ b/plugins/AvatarHistory/src/AvatarHistory.cpp
@@ -21,7 +21,7 @@ Avatar History Plugin
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include "AvatarHistory.h"
+#include "stdafx.h"
HINSTANCE hInst;
@@ -56,14 +56,14 @@ PLUGININFOEX pluginInfo = {
{0xdbe8c990, 0x7aa0, 0x458d, {0xba, 0xb7, 0x33, 0xeb, 0x7, 0x23, 0x8e, 0x71}}
};
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
}
/////////////////////////////////////////////////////////////////////////////////////////
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
{
hInst = hinstDLL;
return TRUE;
@@ -81,7 +81,7 @@ static INT_PTR GetCachedAvatar(WPARAM wParam, LPARAM lParam)
return (INT_PTR)GetCachedAvatar((char*)wParam, hash);
}
-static INT_PTR IsEnabled(WPARAM wParam, LPARAM lParam)
+static INT_PTR IsEnabled(WPARAM wParam, LPARAM)
{
MCONTACT hContact = (MCONTACT) wParam;
return ContactEnabled(hContact, "LogToDisk", AVH_DEF_LOGTODISK)
@@ -227,13 +227,13 @@ static int AvatarChanged(WPARAM hContact, LPARAM lParam)
return 0;
}
-static int PreShutdown(WPARAM wParam, LPARAM lParam)
+static int PreShutdown(WPARAM, LPARAM)
{
WindowList_Broadcast(hAvatarWindowsList,WM_CLOSE,0,0);
return 0;
}
-static int ModulesLoaded(WPARAM wParam, LPARAM lParam)
+static int ModulesLoaded(WPARAM, LPARAM)
{
mir_sntprintf(basedir, SIZEOF(basedir), _T("%s\\Avatars History"), profilePath);
@@ -248,7 +248,7 @@ static int ModulesLoaded(WPARAM wParam, LPARAM lParam)
/////////////////////////////////////////////////////////////////////////////////////////
-static INT_PTR CALLBACK FirstRunDlgProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
+static INT_PTR CALLBACK FirstRunDlgProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM)
{
switch(uMsg) {
case WM_INITDIALOG:
diff --git a/plugins/AvatarHistory/src/icolib.cpp b/plugins/AvatarHistory/src/icolib.cpp
index 88e6b4cae7..7416cf0fc6 100644
--- a/plugins/AvatarHistory/src/icolib.cpp
+++ b/plugins/AvatarHistory/src/icolib.cpp
@@ -1,4 +1,4 @@
-#include "AvatarHistory.h"
+#include "stdafx.h"
enum IconIndex
{
@@ -31,7 +31,7 @@ static void IcoLibUpdateMenus()
DestroyIcon(mi.hIcon);
}
-int IcoLibIconsChanged(WPARAM wParam, LPARAM lParam)
+int IcoLibIconsChanged(WPARAM, LPARAM)
{
IcoLibUpdateMenus();
return 0;
@@ -60,7 +60,7 @@ static HICON getOverlayedIcon(HICON icon, HICON overlay, BOOL big)
}
-HICON createDefaultOverlayedIcon(BOOL big)
+HICON createDefaultOverlayedIcon(BOOL)
{
HICON icon0 = LoadIconEx(I_HISTORY);
HICON icon1 = LoadIconEx(I_OVERLAY);
diff --git a/plugins/AvatarHistory/src/options.cpp b/plugins/AvatarHistory/src/options.cpp
index 37f8a9ef38..1bf2536dae 100644
--- a/plugins/AvatarHistory/src/options.cpp
+++ b/plugins/AvatarHistory/src/options.cpp
@@ -18,7 +18,7 @@ Avatar History Plugin
*/
-#include "AvatarHistory.h"
+#include "stdafx.h"
Options opts;
@@ -144,7 +144,7 @@ static INT_PTR CALLBACK PopupsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA
// Functions //////////////////////////////////////////////////////////////////////////////////////
-int OptInit(WPARAM wParam, LPARAM lParam)
+int OptInit(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { 0 };
odp.hInstance = hInst;
diff --git a/plugins/AvatarHistory/src/popup.cpp b/plugins/AvatarHistory/src/popup.cpp
index 55f3a3ffd2..07810669c9 100644
--- a/plugins/AvatarHistory/src/popup.cpp
+++ b/plugins/AvatarHistory/src/popup.cpp
@@ -17,7 +17,7 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
-#include "AvatarHistory.h"
+#include "stdafx.h"
// Prototypes /////////////////////////////////////////////////////////////////////////////////////
diff --git a/plugins/AvatarHistory/src/stdafx.cpp b/plugins/AvatarHistory/src/stdafx.cxx
index 3b836be4da..6fb37564b7 100644
--- a/plugins/AvatarHistory/src/stdafx.cpp
+++ b/plugins/AvatarHistory/src/stdafx.cxx
@@ -15,4 +15,4 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "AvatarHistory.h" \ No newline at end of file
+#include "stdafx.h" \ No newline at end of file
diff --git a/plugins/AvatarHistory/src/AvatarHistory.h b/plugins/AvatarHistory/src/stdafx.h
index fb3900c4fe..f01d314e9d 100644
--- a/plugins/AvatarHistory/src/AvatarHistory.h
+++ b/plugins/AvatarHistory/src/stdafx.h
@@ -1,5 +1,3 @@
-#define _CRT_SECURE_NO_WARNINGS
-
#include <windows.h>
#include <time.h>
#include <ShObjIdl.h>
diff --git a/plugins/AvatarHistory/src/utils.cpp b/plugins/AvatarHistory/src/utils.cpp
index 4f9dc23773..657b2d4197 100644
--- a/plugins/AvatarHistory/src/utils.cpp
+++ b/plugins/AvatarHistory/src/utils.cpp
@@ -22,7 +22,7 @@ Avatar History Plugin
*/
-#include "AvatarHistory.h"
+#include "stdafx.h"
BOOL ProtocolEnabled(const char *proto)
{