diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-07-26 10:29:35 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-07-26 10:29:35 +0000 |
commit | b51c00fa7ee7a159b71186d818da4da1e5b34450 (patch) | |
tree | 591c4f7ca8d2521e483337ada865c866b33533ec /plugins/Nudge/src | |
parent | 2e29576b70d2549c02bd7bf356644e1234e483b6 (diff) |
Nudge: common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@14712 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Nudge/src')
-rw-r--r-- | plugins/Nudge/src/main.cpp | 10 | ||||
-rw-r--r-- | plugins/Nudge/src/nudge.cpp | 2 | ||||
-rw-r--r-- | plugins/Nudge/src/options.cpp | 6 | ||||
-rw-r--r-- | plugins/Nudge/src/shake.cpp | 6 | ||||
-rw-r--r-- | plugins/Nudge/src/stdafx.cxx (renamed from plugins/Nudge/src/stdafx.cpp) | 2 | ||||
-rw-r--r-- | plugins/Nudge/src/stdafx.h (renamed from plugins/Nudge/src/headers.h) | 2 |
6 files changed, 12 insertions, 16 deletions
diff --git a/plugins/Nudge/src/main.cpp b/plugins/Nudge/src/main.cpp index 614da4686b..53fc784290 100644 --- a/plugins/Nudge/src/main.cpp +++ b/plugins/Nudge/src/main.cpp @@ -1,4 +1,4 @@ -#include "headers.h"
+#include "stdafx.h"
int nProtocol = 0;
static HANDLE hPopupClass;
@@ -194,13 +194,13 @@ int NudgeReceived(WPARAM hContact, LPARAM lParam) return 0;
}
-extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
{
hInst = hinstDLL;
return TRUE;
}
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
}
@@ -246,7 +246,7 @@ static int TabsrmmButtonPressed(WPARAM wParam, LPARAM lParam) return 0;
}
-static int TabsrmmButtonInit(WPARAM wParam, LPARAM lParam)
+static int TabsrmmButtonInit(WPARAM, LPARAM)
{
BBButton bbd = { sizeof(bbd) };
bbd.pszModuleName = "Nudge";
@@ -441,7 +441,7 @@ int Preview() return 0;
}
-void Nudge_ShowPopup(CNudgeElement *n, MCONTACT hContact, TCHAR * Message)
+void Nudge_ShowPopup(CNudgeElement*, MCONTACT hContact, TCHAR * Message)
{
hContact = db_mc_tryMeta(hContact);
TCHAR *lpzContactName = (TCHAR*)pcli->pfnGetContactDisplayName(hContact, 0);
diff --git a/plugins/Nudge/src/nudge.cpp b/plugins/Nudge/src/nudge.cpp index f2817152ef..65b56df049 100644 --- a/plugins/Nudge/src/nudge.cpp +++ b/plugins/Nudge/src/nudge.cpp @@ -1,4 +1,4 @@ -#include "headers.h"
+#include "stdafx.h"
void CNudge::Save(void)
{
diff --git a/plugins/Nudge/src/options.cpp b/plugins/Nudge/src/options.cpp index 4d428e92b7..959fafd6bd 100644 --- a/plugins/Nudge/src/options.cpp +++ b/plugins/Nudge/src/options.cpp @@ -1,4 +1,4 @@ -#include "headers.h"
+#include "stdafx.h"
CNudgeElement* ActualNudge = NULL;
@@ -170,8 +170,6 @@ static INT_PTR CALLBACK DlgProcShakeOpt(HWND hwnd,UINT msg,WPARAM wParam,LPARAM static void PopulateProtocolList(HWND hWnd)
{
- bool useOne = IsDlgButtonChecked(hWnd, IDC_USEBYPROTOCOL) == BST_UNCHECKED;
-
HWND hLstView = GetDlgItem(hWnd, IDC_PROTOLIST);
TreeView_DeleteAllItems(hLstView);
@@ -377,7 +375,7 @@ static INT_PTR CALLBACK DlgProcNudgeOpt(HWND hwnd, UINT msg, WPARAM wParam, LPAR /////////////////////////////////////////////////////////////////////////////////////////
-int NudgeOptInit(WPARAM wParam, LPARAM lParam)
+int NudgeOptInit(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { 0 };
odp.position = -790000000;
diff --git a/plugins/Nudge/src/shake.cpp b/plugins/Nudge/src/shake.cpp index cf3e7c24f2..7ecb6d0463 100644 --- a/plugins/Nudge/src/shake.cpp +++ b/plugins/Nudge/src/shake.cpp @@ -1,4 +1,4 @@ -#include "headers.h"
+#include "stdafx.h"
void CShake::Load(void)
{
@@ -29,13 +29,13 @@ void __cdecl ShakeClistWindow(void *Param) shake.ShakeClist(hWnd);
}
-INT_PTR ShakeClist(WPARAM wParam, LPARAM lParam)
+INT_PTR ShakeClist(WPARAM, LPARAM)
{
mir_forkthread(ShakeClistWindow, (void*)pcli->hwndContactList);
return 0;
}
-INT_PTR ShakeChat(WPARAM wParam, LPARAM lParam)
+INT_PTR ShakeChat(WPARAM wParam, LPARAM)
{
if (((HANDLE)wParam) == NULL) return -1;
diff --git a/plugins/Nudge/src/stdafx.cpp b/plugins/Nudge/src/stdafx.cxx index 7e0216078c..6fb37564b7 100644 --- a/plugins/Nudge/src/stdafx.cpp +++ b/plugins/Nudge/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 "headers.h"
\ No newline at end of file +#include "stdafx.h"
\ No newline at end of file diff --git a/plugins/Nudge/src/headers.h b/plugins/Nudge/src/stdafx.h index 5a1fa0e324..f12cc9839b 100644 --- a/plugins/Nudge/src/headers.h +++ b/plugins/Nudge/src/stdafx.h @@ -3,8 +3,6 @@ // are changed infrequently
//
-#define _CRT_SECURE_NO_WARNINGS
-
#include <windows.h>
#include <commctrl.h>
#include <time.h>
|