Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/2014
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/14/2014/1
cppCheck: Variable is reassigned a value before the old one has been used.
Change-Id: I42cfb06dd8b6b0ff7d4fec6e3b296fa61302c1c0
Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr>
---
M extensions/source/plugin/win/winmgr.cxx
1 file changed, 2 insertions(+), 2 deletions(-)
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_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_MozPlugin( HKEY hKey, PluginLocationMap & rPlugins )
{
TCHAR value[MAX_PATH];
- DWORD dwType, size = sizeof(value);
+ DWORD dwType, size;
size = sizeof(value);
if (::RegQueryValueEx(
--
To view, visit https://gerrit.libreoffice.org/2014
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I42cfb06dd8b6b0ff7d4fec6e3b296fa61302c1c0
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Context
- [PATCH] cppCheck: Variable is reassigned a value before the old one ... · Christophe JAILLET (via Code Review)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.