Fix lots of warnings reported by Clang.
Mostly potentially lossy implicit conversions in headers (long->int). Also dangling else warnings. Struct/class mismatches. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -814,7 +814,7 @@ protected:
|
||||
"Can't calculate number of cols if number of rows is not specified"
|
||||
);
|
||||
|
||||
return (m_children.GetCount() + m_rows - 1) / m_rows;
|
||||
return int(m_children.GetCount() + m_rows - 1) / m_rows;
|
||||
}
|
||||
|
||||
int CalcRows() const
|
||||
@@ -825,7 +825,7 @@ protected:
|
||||
"Can't calculate number of cols if number of rows is not specified"
|
||||
);
|
||||
|
||||
return (m_children.GetCount() + m_cols - 1) / m_cols;
|
||||
return int(m_children.GetCount() + m_cols - 1) / m_cols;
|
||||
}
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user