[Libreoffice-commits] core.git: vcl/source
Julien Nabet
serval2412 at yahoo.fr
Fri Jun 14 14:41:11 PDT 2013
vcl/source/window/menu.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 73fc0f7a00f9b0d395709c302347d702b763f48b
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Jun 14 23:39:36 2013 +0200
cppcheck: fix uninitMemberVar in menu.cxx (vcl)
Just add those detected by cppcheck, should the others also be taken into account?
Change-Id: I4f86afc787d2416b829e332272331a5caa146d45
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 2d39189..aeb2d3d 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -136,11 +136,14 @@ struct MenuItemData
SalMenuItem* pSalMenuItem; // access to native menu
MenuItemData() :
- pSalMenuItem ( NULL )
+ pSubMenu(NULL), pAutoSubMenu(NULL), nItemImageAngle(0), pSalMenuItem ( NULL )
{}
MenuItemData( const XubString& rStr, const Image& rImage ) :
+ pSubMenu(NULL),
+ pAutoSubMenu(NULL),
aText( rStr ),
aImage( rImage ),
+ nItemImageAngle(0),
pSalMenuItem ( NULL )
{}
~MenuItemData();
More information about the Libreoffice-commits
mailing list