diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-04-25 16:48:30 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2015-04-25 16:48:30 +0000 |
commit | 7661154c6360c2b9ff10dc536fe029323f7a96cb (patch) | |
tree | bd2dd8c7a7d13e31708a098412f3d0ca65d799b9 /plugins/Console/src | |
parent | c420197ebd62618924644ae0e205947418c57c12 (diff) |
Console - common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@13141 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Console/src')
-rw-r--r-- | plugins/Console/src/Console.cpp | 22 | ||||
-rw-r--r-- | plugins/Console/src/init.cpp | 6 | ||||
-rw-r--r-- | plugins/Console/src/stdafx.cxx (renamed from plugins/Console/src/stdafx.cpp) | 2 | ||||
-rw-r--r-- | plugins/Console/src/stdafx.h (renamed from plugins/Console/src/commonheaders.h) | 2 |
4 files changed, 15 insertions, 17 deletions
diff --git a/plugins/Console/src/Console.cpp b/plugins/Console/src/Console.cpp index b6954c0387..80c7823d1f 100644 --- a/plugins/Console/src/Console.cpp +++ b/plugins/Console/src/Console.cpp @@ -22,7 +22,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include "commonheaders.h"
+#include "stdafx.h"
#define MS_CONSOLE_SHOW_HIDE "Console/Show/Hide"
@@ -117,7 +117,7 @@ static int Openfile(TCHAR *outputFile, int selection); static HANDLE hTTBButt = 0;
-static int OnTTBLoaded(WPARAM wParam, LPARAM lParam)
+static int OnTTBLoaded(WPARAM, LPARAM)
{
int state = IsWindowVisible(hwndConsole);
@@ -177,7 +177,7 @@ static void ShowConsole(int show) ////////////////////////////////////////////////////////////////////////////////
-static INT_PTR ShowHideConsole(WPARAM wParam, LPARAM lParam)
+static INT_PTR ShowHideConsole(WPARAM, LPARAM)
{
if (hwndConsole)
ShowConsole(!IsWindowVisible(hwndConsole));
@@ -187,7 +187,7 @@ static INT_PTR ShowHideConsole(WPARAM wParam, LPARAM lParam) ////////////////////////////////////////////////////////////////////////////////
-int LogResize(HWND hwnd, LPARAM lParam, UTILRESIZECONTROL *urc)
+int LogResize(HWND hwnd, LPARAM, UTILRESIZECONTROL *urc)
{
switch (urc->wId) {
case IDC_LIST:
@@ -603,7 +603,7 @@ static INT_PTR CALLBACK LogDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LP ////////////////////////////////////////////////////////////////////////////////
-int ConsoleResize(HWND hwnd, LPARAM lParam, UTILRESIZECONTROL *urc)
+int ConsoleResize(HWND, LPARAM, UTILRESIZECONTROL *urc)
{
switch (urc->wId) {
case IDC_TABS:
@@ -916,7 +916,7 @@ static INT_PTR CALLBACK ConsoleDlgProc(HWND hwndDlg, UINT message, WPARAM wParam ////////////////////////////////////////////////////////////////////////////////
-void __cdecl ConsoleThread(void *arg)
+void __cdecl ConsoleThread(void*)
{
MSG msg;
HWND hwnd;
@@ -1075,7 +1075,7 @@ static INT_PTR CALLBACK OptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM }
-static int OptInit(WPARAM wParam, LPARAM lParam)
+static int OptInit(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { 0 };
odp.hInstance = hInst;
@@ -1090,7 +1090,7 @@ static int OptInit(WPARAM wParam, LPARAM lParam) ///////////////////////////////////////////////////////////////////////////////
-static int OnColourChange(WPARAM wParam, LPARAM lParam)
+static int OnColourChange(WPARAM, LPARAM)
{
if (hwndConsole) {
ColourID cid = { 0 };
@@ -1109,7 +1109,7 @@ static int OnColourChange(WPARAM wParam, LPARAM lParam) }
-static int OnFontChange(WPARAM wParam, LPARAM lParam)
+static int OnFontChange(WPARAM, LPARAM)
{
if (hwndConsole) {
HFONT hf = NULL;
@@ -1135,7 +1135,7 @@ static int OnFontChange(WPARAM wParam, LPARAM lParam) return 0;
}
-static int OnSystemModulesLoaded(WPARAM wParam, LPARAM lParam)
+static int OnSystemModulesLoaded(WPARAM, LPARAM)
{
CreateServiceFunction(MS_CONSOLE_SHOW_HIDE, ShowHideConsole);
@@ -1200,7 +1200,7 @@ static int OnSystemModulesLoaded(WPARAM wParam, LPARAM lParam) return 0;
}
-static int PreshutdownConsole(WPARAM wParam, LPARAM lParam)
+static int PreshutdownConsole(WPARAM, LPARAM)
{
if (hwndConsole)
PostMessage(hwndConsole, WM_CLOSE, 0, 1 );
diff --git a/plugins/Console/src/init.cpp b/plugins/Console/src/init.cpp index bf9546f40b..019dfe453d 100644 --- a/plugins/Console/src/init.cpp +++ b/plugins/Console/src/init.cpp @@ -22,7 +22,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include "commonheaders.h"
+#include "stdafx.h"
DWORD mirandaVer;
int hLangpack;
@@ -42,13 +42,13 @@ PLUGININFOEX pluginInfoEx={ {0x23d4f302, 0xd513, 0x45b7, {0x90, 0x27, 0x44, 0x5f, 0x29, 0x55, 0x73, 0x11}}
};
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+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 &pluginInfoEx;
}
diff --git a/plugins/Console/src/stdafx.cpp b/plugins/Console/src/stdafx.cxx index 61fee5df67..6fb37564b7 100644 --- a/plugins/Console/src/stdafx.cpp +++ b/plugins/Console/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 "Commonheaders.h"
\ No newline at end of file +#include "stdafx.h"
\ No newline at end of file diff --git a/plugins/Console/src/commonheaders.h b/plugins/Console/src/stdafx.h index 8b623050a8..c7656b5864 100644 --- a/plugins/Console/src/commonheaders.h +++ b/plugins/Console/src/stdafx.h @@ -22,8 +22,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#define _CRT_SECURE_NO_WARNINGS
-
#include <windows.h>
#include <commctrl.h>
#include <malloc.h>
|