diff ui/downloader_win.cpp @ 20:fec1a610d43f

Mark usage of goto with TODOs to remove them
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 20 Feb 2014 10:57:20 +0000
parents f4f957c58e0a
children 7d07d261b003
line wrap: on
line diff
--- a/ui/downloader_win.cpp	Thu Feb 20 10:56:49 2014 +0000
+++ b/ui/downloader_win.cpp	Thu Feb 20 10:57:20 2014 +0000
@@ -277,6 +277,8 @@
                        QTime(lMod.wHour, lMod.wMinute, lMod.wSecond,
                              lMod.wMilliseconds),
                        Qt::UTC);
+
+// TODO remove and replace with a smart handle
 cleanup:
     if (hRequest) {
         WinHttpCloseHandle(hRequest);
@@ -429,6 +431,7 @@
         }
     } while (bytesAvailable > 0);
 
+// TODO remove and replace with a smart handle
 cleanup:
 
     if (retval && outputFile.isOpen()) {
@@ -546,6 +549,8 @@
         DEBUG << "Error" << GetLastError();
         emit error(tr("Unknown Problem when connecting"), ErrUnknown);
     }
+
+// TODO remove and replace with a smart handle
 cleanup:
     if (hConnect) {
         WinHttpCloseHandle(hConnect);

http://wald.intevation.org/projects/trustbridge/