Remove unnecessary redundant assignments.
Don't assign values consecutively to the same variable without using it in between the assignments, this is useless. See #15893. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2969,7 +2969,6 @@ bool wxPropertyGrid::PerformValidation( wxPGProperty* p, wxVariant& pendingValue
|
|||||||
|
|
||||||
//
|
//
|
||||||
// Adapt list to child values, if necessary
|
// Adapt list to child values, if necessary
|
||||||
wxVariant listValue = pendingValue;
|
|
||||||
wxVariant* pPendingValue = &pendingValue;
|
wxVariant* pPendingValue = &pendingValue;
|
||||||
wxVariant* pList = NULL;
|
wxVariant* pList = NULL;
|
||||||
|
|
||||||
@@ -2983,7 +2982,7 @@ bool wxPropertyGrid::PerformValidation( wxPGProperty* p, wxVariant& pendingValue
|
|||||||
wxPGProperty* baseChangedProperty = changedProperty;
|
wxPGProperty* baseChangedProperty = changedProperty;
|
||||||
wxVariant bcpPendingList;
|
wxVariant bcpPendingList;
|
||||||
|
|
||||||
listValue = pendingValue;
|
wxVariant listValue = pendingValue;
|
||||||
listValue.SetName(p->GetBaseName());
|
listValue.SetName(p->GetBaseName());
|
||||||
|
|
||||||
while ( pwc &&
|
while ( pwc &&
|
||||||
|
@@ -5115,8 +5115,6 @@ bool wxRichTextParagraph::Layout(wxDC& dc, wxRichTextDrawingContext& context, co
|
|||||||
|
|
||||||
// The descent for the whole line at this point, is the correct max descent
|
// The descent for the whole line at this point, is the correct max descent
|
||||||
maxDescent = childDescent;
|
maxDescent = childDescent;
|
||||||
// Maximum ascent
|
|
||||||
maxAscent = actualSize.y-childDescent;
|
|
||||||
|
|
||||||
// lineHeight is given by the height for the whole line, since it will
|
// lineHeight is given by the height for the whole line, since it will
|
||||||
// take into account ascend/descend.
|
// take into account ascend/descend.
|
||||||
|
Reference in New Issue
Block a user