From 9a0784912d37f7f6d7413c585b7e2e039ba245b9 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 1 Mar 2013 08:22:35 +0000 Subject: removed not used headers git-svn-id: http://svn.miranda-ng.org/main/trunk@3814 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MobileState/src/commonheaders.h | 6 ++---- plugins/MobileState/src/main.cpp | 5 ++--- plugins/MobileState/src/version.h | 8 +------- 3 files changed, 5 insertions(+), 14 deletions(-) (limited to 'plugins/MobileState/src') diff --git a/plugins/MobileState/src/commonheaders.h b/plugins/MobileState/src/commonheaders.h index 2574df0c71..83af9bbdf9 100644 --- a/plugins/MobileState/src/commonheaders.h +++ b/plugins/MobileState/src/commonheaders.h @@ -19,8 +19,6 @@ #pragma once -#define MIRANDA_VER 0x0A00 - #include #include @@ -31,10 +29,10 @@ #include #include #include +#include #include "resource.h" #include "Version.h" +#include "clients.h" #define MODULENAME "MobileState" - -extern HINSTANCE g_hInst; diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp index 739877cfa3..bb2d388704 100644 --- a/plugins/MobileState/src/main.cpp +++ b/plugins/MobileState/src/main.cpp @@ -18,7 +18,6 @@ */ #include "commonheaders.h" -#include "clients.h" HINSTANCE g_hInst; int hLangpack; @@ -35,7 +34,7 @@ PLUGININFOEX pluginInfo = { __AUTHORWEB, UNICODE_AWARE, // {F0BA32D0-CD07-4A9C-926B-5A1FF21C3C10} - {0xf0ba32d0, 0xcd07, 0x4a9c, { 0x92, 0x6b, 0x5a, 0x1f, 0xf2, 0x1c, 0x3c, 0x10 }} + {0xf0ba32d0, 0xcd07, 0x4a9c, {0x92, 0x6b, 0x5a, 0x1f, 0xf2, 0x1c, 0x3c, 0x10}} }; static IconItem icon = { LPGEN("Mobile State"), "mobile_icon", IDI_MOBILE }; @@ -60,7 +59,7 @@ bool hasMobileClient(HANDLE hContact, LPARAM lParam) TCHAR *client = _tcslwr(NEWTSTR_ALLOCA(dbv.ptszVal)); db_free(&dbv); - for (size_t i=0; i<(sizeof(clients) / sizeof(TCHAR*)); i++) + for (size_t i = 0; i < SIZEOF(clients); i++) if (_tcsstr(client, clients[i])) return true; } diff --git a/plugins/MobileState/src/version.h b/plugins/MobileState/src/version.h index dde83653b5..5f312a9de8 100644 --- a/plugins/MobileState/src/version.h +++ b/plugins/MobileState/src/version.h @@ -4,14 +4,8 @@ #define __BUILD_NUM 1 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM -#define __FILEVERSION_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM -#define __STRINGIFY_IMPL(x) #x -#define __STRINGIFY(x) __STRINGIFY_IMPL(x) -#define __VERSION_STRING __STRINGIFY(__FILEVERSION_DOTS) - -#define __PLUGIN_NAME "Mobile State" -#define __INTERNAL_NAME "MobileState" +#define __PLUGIN_NAME "Mobile state" #define __FILENAME "MobileState.dll" #define __DESCRIPTION "Plugin shows mobile icon in contact list next to contacts which are using mobile client." #define __AUTHOR "Robert P\xf6" "sel" -- cgit v1.2.3