summaryrefslogtreecommitdiff
path: root/onlineupdate
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2015-08-22 16:50:56 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-08-23 06:02:42 +0000
commitb712b1f63492a311e4a51cffd516b3e202a140e6 (patch)
tree6703ded631b477680b87da3f1fe6b398c595e5f7 /onlineupdate
parent93cd7b78c29c11ccc87c19c845c6617acb834630 (diff)
tdf#39440 cppcheck: redundantAssignment
This addresses some of cppcheck's "redundantAssignment" warnings ("Variable '<varName>' is reassigned a value before the old one has been used"). Change-Id: I8fd2950d5aa1a3f4bd9e1c4c336abe465d1f657e Reviewed-on: https://gerrit.libreoffice.org/17926 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'onlineupdate')
-rw-r--r--onlineupdate/source/update/updater/progressui_win.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/onlineupdate/source/update/updater/progressui_win.cxx b/onlineupdate/source/update/updater/progressui_win.cxx
index 3cbbc6b9891d..49ae81e68d07 100644
--- a/onlineupdate/source/update/updater/progressui_win.cxx
+++ b/onlineupdate/source/update/updater/progressui_win.cxx
@@ -284,8 +284,7 @@ ShowProgressUI(bool indeterminate, bool initUIStrings)
actx.lpSource = appPath;
actx.lpResourceName = MAKEINTRESOURCE(IDR_COMCTL32_MANIFEST);
- HANDLE hactx = INVALID_HANDLE_VALUE;
- hactx = CreateActCtxW(&actx);
+ HANDLE hactx = CreateActCtxW(&actx);
ULONG_PTR actxCookie = NULL;
if (hactx != INVALID_HANDLE_VALUE) {
// Push the specified activation context to the top of the activation stack.