changeset 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 9af6198deb8e
children dc1e1e9e62ce
files ui/downloader_win.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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/