From 03e3e4ebe0fee7bbe8014014b77a21d22cc090a8 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Tue, 6 Apr 2010 00:55:48 +0000 Subject: Fixed translation issue Removed unneeded/duplicated code (thus shaved few more kb from the dll) git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@496 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/services.cpp | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'updater/services.cpp') diff --git a/updater/services.cpp b/updater/services.cpp index 4b232b1..b5c8a88 100644 --- a/updater/services.cpp +++ b/updater/services.cpp @@ -63,11 +63,11 @@ bool DownloadUpdates(UpdateList &todo, FilenameMap *map, bool dlls_only) { } if(download) { - mir_sntprintf(msg, SIZEOF(msg), TranslateT("Downloading plugin: %s"), TranslateTS(temp_str = GetTString(todo[index].update.szComponentName))); - free(temp_str); + mir_sntprintf(msg, SIZEOF(msg), TranslateT("Downloading plugin: %s"), (temp_str = GetTString(todo[index].update.szComponentName))); + mir_free(temp_str); } else { - mir_sntprintf(msg, SIZEOF(msg), TranslateT("Skipping plugin: %s"), TranslateTS(temp_str = GetTString(todo[index].update.szComponentName))); - free(temp_str); + mir_sntprintf(msg, SIZEOF(msg), TranslateT("Skipping plugin: %s"), (temp_str = GetTString(todo[index].update.szComponentName))); + mir_free(temp_str); } if(!use_popup) { @@ -227,11 +227,11 @@ void CheckForUpdatesWorker(void *param) { for(index = 0; index < count; index++) { if(update_list2[index].update_options.enabled) { - mir_sntprintf(msg, SIZEOF(msg), TranslateT("Checking plugin: %s"), TranslateTS(temp_str = GetTString(update_list2[index].update.szComponentName))); - free(temp_str); + mir_sntprintf(msg, SIZEOF(msg), TranslateT("Checking plugin: %s"), (temp_str = GetTString(update_list2[index].update.szComponentName))); + mir_free(temp_str); } else { - mir_sntprintf(msg, SIZEOF(msg), TranslateT("Skipping plugin: %s"), TranslateTS(temp_str = GetTString(update_list2[index].update.szComponentName))); - free(temp_str); + mir_sntprintf(msg, SIZEOF(msg), TranslateT("Skipping plugin: %s"), (temp_str = GetTString(update_list2[index].update.szComponentName))); + mir_free(temp_str); } if(!use_popup) { @@ -414,13 +414,13 @@ void SaveUpdateOptions(char *szComponentName, UpdateOptions *update_options) { INT_PTR SetUpdateOptions(WPARAM wParam, LPARAM lParam) { char *szComponentName = (char *)wParam; UpdateOptions *uo = (UpdateOptions *)lParam; - TCHAR *temp1 = 0, *temp2 = 0; + TCHAR *temp1 = 0; bool found = false; EnterCriticalSection(&list_cs); for (int i=0; i