minor cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Surovell
2006-01-07 06:30:25 +00:00
parent 1c4cd9e047
commit 73c902d669
4 changed files with 10 additions and 10 deletions

View File

@@ -527,7 +527,7 @@ size_t wxMBConvUTF7::WC2MB(char *buf, const wchar_t *psz, size_t n) const
{
// BASE64 encode string
unsigned int lsb, d, l;
for (d = 0, l = 0;; psz++)
for (d = 0, l = 0; /*nothing*/; psz++)
{
for (lsb = 0; lsb < 2; lsb ++)
{

View File

@@ -717,7 +717,7 @@ long wxTreeCtrl::GetChild(long item) const {
p = findGtkTreeItem(item);
GList *list = gtk_container_children(GTK_CONTAINER(p));
next = GTK_TREE_ITEM(list->data);;
next = GTK_TREE_ITEM(list->data);
if (next != NULL)
return (long)gtk_object_get_data(GTK_OBJECT(next), "id");
@@ -729,7 +729,7 @@ long wxTreeCtrl::GetFirstVisibleItem(void) const {
GtkTreeItem *next = NULL;
GList *list = gtk_container_children(GTK_CONTAINER(m_anchor));
next = GTK_TREE_ITEM(list->data);;
next = GTK_TREE_ITEM(list->data);
// gtk_container_foreach(GTK_CONTAINER(m_anchor), gtk_treectrl_next_visible_callback, &next);
if (next != NULL)
@@ -744,7 +744,7 @@ long wxTreeCtrl::GetNextVisibleItem(long item) const {
p = findGtkTreeItem(item);
GList *list = gtk_container_children(GTK_CONTAINER(p));
next = GTK_TREE_ITEM(list->data);;
next = GTK_TREE_ITEM(list->data);
// gtk_container_foreach(GTK_CONTAINER(p), gtk_treectrl_next_visible_callback, &next);
if (next != NULL)

View File

@@ -717,7 +717,7 @@ long wxTreeCtrl::GetChild(long item) const {
p = findGtkTreeItem(item);
GList *list = gtk_container_children(GTK_CONTAINER(p));
next = GTK_TREE_ITEM(list->data);;
next = GTK_TREE_ITEM(list->data);
if (next != NULL)
return (long)gtk_object_get_data(GTK_OBJECT(next), "id");
@@ -729,7 +729,7 @@ long wxTreeCtrl::GetFirstVisibleItem(void) const {
GtkTreeItem *next = NULL;
GList *list = gtk_container_children(GTK_CONTAINER(m_anchor));
next = GTK_TREE_ITEM(list->data);;
next = GTK_TREE_ITEM(list->data);
// gtk_container_foreach(GTK_CONTAINER(m_anchor), gtk_treectrl_next_visible_callback, &next);
if (next != NULL)
@@ -744,7 +744,7 @@ long wxTreeCtrl::GetNextVisibleItem(long item) const {
p = findGtkTreeItem(item);
GList *list = gtk_container_children(GTK_CONTAINER(p));
next = GTK_TREE_ITEM(list->data);;
next = GTK_TREE_ITEM(list->data);
// gtk_container_foreach(GTK_CONTAINER(p), gtk_treectrl_next_visible_callback, &next);
if (next != NULL)

View File

@@ -705,8 +705,8 @@ void wxTopLevelWindowMSW::Maximize(bool maximize)
}
else // hidden
{
// we can't maximize the hidden frame because it shows it as well, so
// just remember that we should do it later in this case
// we can't maximize the hidden frame because it shows it as well,
// so just remember that we should do it later in this case
m_maximizeOnShow = maximize;
// after calling Maximize() the client code expects to get the frame
@@ -715,7 +715,7 @@ void wxTopLevelWindowMSW::Maximize(bool maximize)
// it's shown, so return our size as it will be then in this case
if ( maximize )
{
// unfortunatrly we don't know which display we're on yet so we
// unfortunately we don't know which display we're on yet so we
// have to use the default one
SetSize(wxGetClientDisplayRect().GetSize());
}