summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-07-17 08:43:28 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-07-17 08:43:28 +0000
commitb9235db4280934eea99ec51eed09bb16df66a266 (patch)
tree959bb871bca8217bc6e0a7b19aaff72fd568f3e0 /plugins/Db_autobackups
parent2ff3fc22cca2302a3787930efb4bbefb45c2d975 (diff)
-translation fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@5394 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups')
-rw-r--r--plugins/Db_autobackups/src/backup.cpp2
-rw-r--r--plugins/Db_autobackups/src/main.cpp11
2 files changed, 6 insertions, 7 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp
index 2a2495b62b..59f65c6220 100644
--- a/plugins/Db_autobackups/src/backup.cpp
+++ b/plugins/Db_autobackups/src/backup.cpp
@@ -155,7 +155,7 @@ int Backup(TCHAR* backup_filename)
ShowPopup(dbname, TranslateT("Backup in Progress"));
if (!options.disable_progress) {
- progress_dialog = CreateDialog(hInst, MAKEINTRESOURCE(IDD_COPYPROGRESS), 0, (DLGPROC)DlgProcProgress);
+ progress_dialog = CreateDialog(hInst, MAKEINTRESOURCE(IDD_COPYPROGRESS), 0, DlgProcProgress);
SetDlgItemText(progress_dialog, IDC_PROGRESSMESSAGE, TranslateT("Rotating backup files..."));
}
diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp
index 4edc3dfbad..dc6aea1c5d 100644
--- a/plugins/Db_autobackups/src/main.cpp
+++ b/plugins/Db_autobackups/src/main.cpp
@@ -26,7 +26,7 @@ static IconItem iconList[] = {
{LPGEN("Save Profile As..."), "saveas", IDI_ICON1 }
};
-static int FoldersGetBackupPath(WPARAM wParam, LPARAM lParam)
+static int FoldersGetBackupPath(WPARAM, LPARAM)
{
FoldersGetCustomPathT(hFolder, options.folder, MAX_PATH, DIR SUB_DIR);
return 0;
@@ -59,11 +59,11 @@ static void MenuInit(void)
Menu_AddMainMenuItem(&mi);
}
-static int ModulesLoad(WPARAM wParam, LPARAM lParam)
+static int ModulesLoad(WPARAM, LPARAM)
{
profilePath = Utils_ReplaceVarsT(_T("%miranda_userdata%"));
- Icon_Register(hInst, LPGEN("Database/Database Backups"), iconList, SIZEOF(iconList));
+ Icon_Register(hInst, LPGEN("Database")"/"LPGEN("Database Backups"), iconList, SIZEOF(iconList));
FoldersInit();
LoadOptions();
@@ -77,7 +77,7 @@ static int ModulesLoad(WPARAM wParam, LPARAM lParam)
// can't do this on unload, since other plugins will be have already been unloaded, but their hooks
// for setting changed event not cleared. the backup on exit function will write to the db, calling those hooks.
-int PreShutdown(WPARAM wParam, LPARAM lParam)
+int PreShutdown(WPARAM, LPARAM)
{
if(options.backup_types & BT_EXIT)
{
@@ -157,8 +157,7 @@ HWND CreateToolTip(HWND hwndParent, LPTSTR ptszText, LPTSTR ptszTitle)
CW_USEDEFAULT, CW_USEDEFAULT,
hwndParent, NULL, hInst, NULL);
- SetWindowPos(hwndTT, HWND_TOPMOST, 0, 0, 0, 0,
- SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
+ SetWindowPos(hwndTT, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
TOOLINFO ti = {0};
ti.cbSize = sizeof(TOOLINFO);