Index: uppsrc/CtrlLib/Progress.cpp =================================================================== --- uppsrc/CtrlLib/Progress.cpp (revision 228) +++ uppsrc/CtrlLib/Progress.cpp (working copy) @@ -117,6 +117,7 @@ } ProgressIndicator::ProgressIndicator() { + pxp = 0; style = &StyleDefault(); Transparent(); NoWantFocus(); Index: uppsrc/CtrlLib/ScrollBar.cpp =================================================================== --- uppsrc/CtrlLib/ScrollBar.cpp (revision 228) +++ uppsrc/CtrlLib/ScrollBar.cpp (working copy) @@ -34,9 +34,13 @@ isup2 = isdown2 = isleft2 = isright2 = false; } -ScrollBar::ScrollBar() { +ScrollBar::ScrollBar() +: style(NULL) +, pagepos(0) +, pagesize(0) +, totalsize(0) +{ minthumb = 16; - pagepos = pagesize = totalsize = 0; linesize = 1; autohide = false; autodisable = true; Index: uppsrc/CtrlLib/TreeCtrl.cpp =================================================================== --- uppsrc/CtrlLib/TreeCtrl.cpp (revision 228) +++ uppsrc/CtrlLib/TreeCtrl.cpp (working copy) @@ -53,7 +53,8 @@ size.cy = cy; } -TreeCtrl::TreeCtrl() +TreeCtrl::TreeCtrl() +: selectcount(0) { levelcx = 16; nocursor = false; Index: uppsrc/CtrlLib/DropList.cpp =================================================================== --- uppsrc/CtrlLib/DropList.cpp (revision 228) +++ uppsrc/CtrlLib/DropList.cpp (working copy) @@ -235,6 +235,7 @@ } DropList::DropList() +: alwaysdrop(false) { NoInitFocus(); AddButton().Main().WhenPush = THISBACK(Drop); @@ -247,7 +248,6 @@ valuedisplay = NULL; dropfocus = false; notnull = false; - alwaysdrop = false; } DropList::~DropList() {} Index: uppsrc/CtrlLib/ArrayCtrl.cpp =================================================================== --- uppsrc/CtrlLib/ArrayCtrl.cpp (revision 228) +++ uppsrc/CtrlLib/ArrayCtrl.cpp (working copy) @@ -2528,8 +2528,39 @@ InsertDrop(line, GetInternal(d), d); } -ArrayCtrl::ArrayCtrl() { - cursor = -1; +ArrayCtrl::ArrayCtrl() +: inserting(false) +, nocursor(false) +, vertgrid(true) +, horzgrid(true) +, cursor(-1) +, mousemove(false) +, popupex(true) +, appending(false) +, removing(false) +, askremove(true) +, duplicating(false) +, moving(false) +, appendline(false) +, noinsertappend(false) +, editmode(false) +, insertmode(false) +, multiselect(false) +, selectiondirty(false) +, hasctrls(false) +, headerctrls(false) +, nobg(false) +, selectcount(0) +, bains(0) +, row_name(t_("row")) +, gridcolor(SColorShadow) +, autoappend(false) +, focussetcursor(true) +, sortcolumn(-1) +, allsorting(false) +, acceptingrow(0) +, linecy(Draw::GetStdFontCy()) +{ Reset(); AddFrame(sb); AddFrame(header); Index: uppsrc/CtrlLib/RichTextView.cpp =================================================================== --- uppsrc/CtrlLib/RichTextView.cpp (revision 228) +++ uppsrc/CtrlLib/RichTextView.cpp (working copy) @@ -376,22 +376,25 @@ void LinkInRichTextClipboard__(); RichTextView::RichTextView() +: cx(3968) +, sizetracking(false) +, zoom(Null) +, background(SColorPaper) +, vcenter(false) +, margin(Rect(0, 0, 0, 0)) +, highlight(-1) +, hldec(true) +, anchor(0) +, cursor(0) +, sell(0) +, selh(0) { SetFrame(ViewFrame()); AddFrame(sb); - cx = 3968; - sizetracking = false; sb.SetLine(100); sb.WhenScroll = THISBACK(Scroll); - zoom = Null; - background = SColorPaper; - vcenter = false; - margin = Rect(0, 0, 0, 0); - highlight = -1; - hldec = true; WhenLink = callback(LaunchWebBrowser); NoWantFocus(); - anchor = cursor = sell = selh = 0; } RichTextView::~RichTextView() {} Index: uppsrc/CtrlLib/LineEdit.cpp =================================================================== --- uppsrc/CtrlLib/LineEdit.cpp (revision 228) +++ uppsrc/CtrlLib/LineEdit.cpp (working copy) @@ -5,6 +5,7 @@ #define LLOG(x) // LOG(x) LineEdit::LineEdit() { + isdrag = true; nohbar = false; showtabs = false; tabsize = 4; Index: uppsrc/CtrlCore/Ctrl.cpp =================================================================== --- uppsrc/CtrlCore/Ctrl.cpp (revision 228) +++ uppsrc/CtrlCore/Ctrl.cpp (working copy) @@ -546,7 +546,9 @@ return false; } -Ctrl::Ctrl() { +Ctrl::Ctrl() +: akv(true) +{ LLOG("Ctrl::Ctrl"); destroying = false; parent = prev = next = firstchild = lastchild = NULL; @@ -568,6 +570,7 @@ modify = false; unicode = false; popupgrab = false; + fullrefresh = false; } void KillTimeCallbacks(void *id, void *idlim); Index: uppsrc/CtrlCore/TopWindow.cpp =================================================================== --- uppsrc/CtrlCore/TopWindow.cpp (revision 228) +++ uppsrc/CtrlCore/TopWindow.cpp (working copy) @@ -474,29 +474,33 @@ }; TopWindow::TopWindow() -{ - TransparentBackPaint(); - background = PaintRect(Single(), Null); - center = 1; - minsize = Size(80, 20); - +: background(PaintRect(Single(), Null)) +, center(1) +, minsize(Size(80, 20)) #ifdef PLATFORM_WIN32 - style = 0; - exstyle = 0; - ico = lico = NULL; +, style(0) +, exstyle(0) +, ico(NULL) +, lico(NULL) #endif #ifdef PLATFORM_X11 - size_hints = XAllocSizeHints(); - wm_hints = XAllocWMHints(); - class_hint = XAllocClassHint(); - topmost = false; +, size_hints(XAllocSizeHints()) +, wm_hints(XAllocWMHints()) +, class_hint(XAllocClassHint()) +, topmost(false) #endif - maximizebox = minimizebox = sizeable = tool = false; - state = OVERLAPPED; +, maximizebox(false) +, minimizebox(false) +, sizeable(false) +, tool(false) +, state(OVERLAPPED) +, dokeys(true) +, fullscreen(false) +{ + TransparentBackPaint(); + WhenClose = THISBACK(Close); overlapped.Clear(); - dokeys = true; - fullscreen = false; } TopWindow::~TopWindow() Index: uppsrc/RichText/TxtData.cpp =================================================================== --- uppsrc/RichText/TxtData.cpp (revision 228) +++ uppsrc/RichText/TxtData.cpp (working copy) @@ -400,6 +400,7 @@ void RichTxt::Init() { + r_parti = 0; r_type = ALL; tabcount = length = 0; } Index: uppsrc/CodeEditor/CodeEditor.cpp =================================================================== --- uppsrc/CodeEditor/CodeEditor.cpp (revision 228) +++ uppsrc/CodeEditor/CodeEditor.cpp (working copy) @@ -972,6 +972,9 @@ } CodeEditor::CodeEditor() { + highlight_bracket_pos0 = 0; + bracket_start = 0; + bracket_flash = true; stat_edit_time = 0; last_key_time = Null; CtrlLayout(findreplace); Index: uppsrc/CodeEditor/Syntax.cpp =================================================================== --- uppsrc/CodeEditor/Syntax.cpp (revision 228) +++ uppsrc/CodeEditor/Syntax.cpp (working copy) @@ -26,6 +26,7 @@ } void CodeEditor::SyntaxState::Clear() { + spar = 0; line = cl = bl = pl = 0; linecont = linecomment = comment = string = false; macro = MACRO_OFF; Index: uppsrc/ide/idewin.cpp =================================================================== --- uppsrc/ide/idewin.cpp (revision 228) +++ uppsrc/ide/idewin.cpp (working copy) @@ -405,7 +405,11 @@ SetBar(); } -Ide::Ide() +Ide::Ide() +: toolbar_in_row(true) +, idestate(EDITING) +, debuglock(0) +, mark_lines(true) { start_time = GetSysTime(); stat_build_time = 0; @@ -539,9 +543,6 @@ astyle_TabSpaceConversionMode = false; astyle_TestBox = "#include \n#ifndef __abcd_h\n#include \n#endif\n\nvoid test(int a, int b)\n{\n /* this is a switch */\n switch(a)\n\n {\n case 1:\n b = 2;\n break;\n case 2:\n b = 4;\n break;\n default:\n break;\n }\n\n /* this are more statements on one line */\n a = 2*a;b=-5;a=2*(b+2)*(a+3)/4;\n\n /* single line blocks */\n {int z;z = 2*a+b;}\n\n /* loop */\n for(int i = 0;i< 10;i++) { a = b+2*i;}\n\n}\n"; - idestate = EDITING; - debuglock = 0; - console.WhenSelect = THISBACK(FindError); console.SetSlots(hydra1_threads); @@ -589,7 +590,6 @@ filetabs = true; auto_enclose = false; - mark_lines = true; bordercolumn = 96; bordercolor = SColorFace(); Index: uppsrc/ide/Browser/Browser.cpp =================================================================== --- uppsrc/ide/Browser/Browser.cpp (revision 228) +++ uppsrc/ide/Browser/Browser.cpp (working copy) @@ -439,6 +439,8 @@ } Browser::Browser() +: clickpos(true) +, show_inherited(true) { nesting.NoHeader().NoGrid(); nesting.AddKey(); @@ -458,8 +460,6 @@ Register(this); Reload(); BackPaint(); - clickpos = true; - show_inherited = true; } Browser::~Browser()