void wxFlexGridSizer::RecalcSizes()
{
- int nitems, nrows, ncols;
- if ( (nitems = CalcRowsCols(nrows, ncols)) == 0 )
+ int nrows, ncols;
+ if ( !CalcRowsCols(nrows, ncols) )
return;
const wxPoint pt(GetPosition());
if ( !item->IsShown() )
continue;
-
- const wxSize sizeThis(item->GetMinSizeWithBorder());
+#ifndef __DMC__
+ // DMC doesn't distinguish between
+ // int SizeInMajorDir(const wxSize& sz) const
+ // and int& SizeInMajorDir(wxSize& sz)
+ const
+#endif
+ wxSize sizeThis(item->GetMinSizeWithBorder());
// adjust the size in the major direction using the proportion
if ( !item->IsShown() )
continue;
-
- const wxSize sizeMinThis = item->CalcMin();
+#ifndef __DMC__
+ const // see __DMC__ above
+#endif
+ wxSize sizeMinThis = item->CalcMin();
SizeInMajorDir(m_minSize) += SizeInMajorDir(sizeMinThis);
if ( SizeInMinorDir(sizeMinThis) > SizeInMinorDir(m_minSize) )