diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-04-25 11:54:43 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-04-25 11:54:43 +0000 |
commit | d6963825060493cd956b9ab758169438328c5f12 (patch) | |
tree | 895730fe584d6700bd351a067f6aa99ea36846ae /plugins/BuddyPounce/src | |
parent | 07209607fbe1018503f1304bedff37daea7e9e82 (diff) |
BuddyPounce - common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@13133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BuddyPounce/src')
-rw-r--r-- | plugins/BuddyPounce/src/dialog.cpp | 3 | ||||
-rw-r--r-- | plugins/BuddyPounce/src/main.cpp | 15 | ||||
-rw-r--r-- | plugins/BuddyPounce/src/stdafx.cxx (renamed from plugins/BuddyPounce/src/stdafx.cpp) | 2 | ||||
-rw-r--r-- | plugins/BuddyPounce/src/stdafx.h (renamed from plugins/BuddyPounce/src/headers.h) | 1 |
4 files changed, 9 insertions, 12 deletions
diff --git a/plugins/BuddyPounce/src/dialog.cpp b/plugins/BuddyPounce/src/dialog.cpp index 64f3400f94..df0e873783 100644 --- a/plugins/BuddyPounce/src/dialog.cpp +++ b/plugins/BuddyPounce/src/dialog.cpp @@ -1,4 +1,4 @@ -#include "headers.h"
+#include "stdafx.h"
void populateSettingsList(HWND hwnd2List)
{
@@ -44,7 +44,6 @@ void saveLastSetting(MCONTACT hContact, HWND hwnd) GetDlgItemText(hwnd, IDC_SETTINGNUMBER, number, SIZEOF(number));
db_set_b(hContact, modname, "GiveUpDays", (BYTE)_ttoi(number));
{
- time_t today = time(NULL);
db_set_dw(hContact, modname, "GiveUpDate", (DWORD)(_ttoi(number)*SECONDSINADAY));
}
break;
diff --git a/plugins/BuddyPounce/src/main.cpp b/plugins/BuddyPounce/src/main.cpp index 7a58be7869..843ee1d2ca 100644 --- a/plugins/BuddyPounce/src/main.cpp +++ b/plugins/BuddyPounce/src/main.cpp @@ -1,4 +1,4 @@ -#include "headers.h"
+#include "stdafx.h"
int hLangpack;
HINSTANCE hInst;
@@ -22,7 +22,7 @@ PLUGININFOEX pluginInfo={ // WINAPI DllMain
//========================
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID)
{
hInst = hinstDLL;
return TRUE;
@@ -32,7 +32,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) //========================
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfo;
}
@@ -41,7 +41,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda // MainInit
//===================
-int MainInit(WPARAM wParam, LPARAM lParam)
+int MainInit(WPARAM, LPARAM)
{
CLISTMENUITEM mi = { sizeof(mi) };
mi.position=10;
@@ -55,7 +55,7 @@ int MainInit(WPARAM wParam, LPARAM lParam) return 0;
}
-int MsgAck(WPARAM wParam, LPARAM lParam)
+int MsgAck(WPARAM, LPARAM lParam)
{
ACKDATA *ack=(ACKDATA*)lParam;
@@ -93,7 +93,7 @@ int MsgAck(WPARAM wParam, LPARAM lParam) return 0;
}
-int BuddyPounceOptInit(WPARAM wParam, LPARAM lParam)
+int BuddyPounceOptInit(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { 0 };
odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
@@ -188,7 +188,7 @@ int UserOnlineSettingChanged(WPARAM hContact, LPARAM lParam) return 0;
}
-INT_PTR BuddyPounceMenuCommand(WPARAM hContact, LPARAM lParam)
+INT_PTR BuddyPounceMenuCommand(WPARAM hContact, LPARAM)
{
if (db_get_b(NULL, modname, "UseAdvanced", 0) || db_get_b(hContact, modname, "UseAdvanced", 0))
CreateDialogParam(hInst,MAKEINTRESOURCE(IDD_POUNCE),0,BuddyPounceDlgProc, hContact);
@@ -201,7 +201,6 @@ INT_PTR AddSimpleMessage(WPARAM wParam, LPARAM lParam) {
MCONTACT hContact = wParam;
TCHAR* message = (TCHAR*)lParam;
- time_t today = time(NULL);
db_set_ws(hContact, modname, "PounceMsg", message);
db_set_w(hContact, modname, "SendIfMyStatusIsFLAG", (WORD)db_get_w(NULL, modname, "SendIfMyStatusIsFLAG",1));
db_set_w(hContact, modname, "SendIfTheirStatusIsFLAG", (WORD)db_get_w(NULL, modname, "SendIfTheirStatusIsFLAG",1));
diff --git a/plugins/BuddyPounce/src/stdafx.cpp b/plugins/BuddyPounce/src/stdafx.cxx index 7e0216078c..6fb37564b7 100644 --- a/plugins/BuddyPounce/src/stdafx.cpp +++ b/plugins/BuddyPounce/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/BuddyPounce/src/headers.h b/plugins/BuddyPounce/src/stdafx.h index c9157088d4..9cbaf66a71 100644 --- a/plugins/BuddyPounce/src/headers.h +++ b/plugins/BuddyPounce/src/stdafx.h @@ -1,7 +1,6 @@ #ifndef _COMMONHEADERS_H
#define _COMMONHEADERS_H
-#define _CRT_SECURE_NO_WARNINGS
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
|