[Libreoffice-commits] core.git: extensions/source
jailletc36
christophe.jaillet at wanadoo.fr
Wed Feb 6 04:50:34 PST 2013
extensions/source/plugin/win/winmgr.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 38bdcbbeebf300bc036bcff4630a002224b55d52
Author: jailletc36 <christophe.jaillet at wanadoo.fr>
Date: Wed Feb 6 11:13:38 2013 +0100
cppCheck: Variable is reassigned a value before the old one has been used.
Change-Id: I42cfb06dd8b6b0ff7d4fec6e3b296fa61302c1c0
Signed-off-by: jailletc36 <christophe.jaillet at wanadoo.fr>
Reviewed-on: https://gerrit.libreoffice.org/2014
Tested-by: Tomáš Chvátal <tchvatal at suse.cz>
Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
diff --git a/extensions/source/plugin/win/winmgr.cxx b/extensions/source/plugin/win/winmgr.cxx
index 17f06d3..4f62ecd 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(
More information about the Libreoffice-commits
mailing list