From 38bdcbbeebf300bc036bcff4630a002224b55d52 Mon Sep 17 00:00:00 2001 From: jailletc36 Date: Wed, 6 Feb 2013 11:13:38 +0100 Subject: cppCheck: Variable is reassigned a value before the old one has been used. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I42cfb06dd8b6b0ff7d4fec6e3b296fa61302c1c0 Signed-off-by: jailletc36 Reviewed-on: https://gerrit.libreoffice.org/2014 Tested-by: Tomáš Chvátal Reviewed-by: Norbert Thiebaud --- extensions/source/plugin/win/winmgr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/source/plugin/win/winmgr.cxx') diff --git a/extensions/source/plugin/win/winmgr.cxx b/extensions/source/plugin/win/winmgr.cxx index 17f06d3cc4a9..4f62ecd1c881 100644 --- a/extensions/source/plugin/win/winmgr.cxx +++ b/extensions/source/plugin/win/winmgr.cxx @@ -160,7 +160,7 @@ static void add_IE_Plugins( PluginLocationMap & rPlugins ) static void add_NS_keys( HKEY hKey, PluginLocationMap & rPlugins ) { TCHAR value[MAX_PATH]; - DWORD dwType, size = sizeof(value); + DWORD dwType, size; // 4.7 size = sizeof(value); @@ -219,7 +219,7 @@ static void add_NS_lookupRecursive( HKEY hKey, PluginLocationMap & rPlugins ) static void add_MozPlugin( HKEY hKey, PluginLocationMap & rPlugins ) { TCHAR value[MAX_PATH]; - DWORD dwType, size = sizeof(value); + DWORD dwType, size; size = sizeof(value); if (::RegQueryValueEx( -- cgit