minor cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Surovell
2006-01-07 06:09:50 +00:00
parent efb064f747
commit 1c4cd9e047
3 changed files with 6 additions and 6 deletions

View File

@@ -649,7 +649,7 @@ void wxMimeTypesManagerImpl::LoadGnomeMimeTypesFromMimeFile(const wxString& file
const wxChar *pc;
size_t nLineCount = textfile.GetLineCount();
for ( size_t nLine = 0;; nLine++ )
for ( size_t nLine = 0; /* nothing */; nLine++ )
{
if ( nLine < nLineCount )
{
@@ -805,7 +805,7 @@ void wxMimeTypesManagerImpl::GetGnomeMimeInfo(const wxString& sExtraDir)
{
wxArrayString dirs;
wxString gnomedir = wxGetenv( wxT("GNOMEDIR") );;
wxString gnomedir = wxGetenv( wxT("GNOMEDIR") );
if (!gnomedir.empty())
{
gnomedir << wxT("/share");
@@ -1384,9 +1384,9 @@ bool wxFileTypeImpl::GetExtensions(wxArrayString& extensions)
wxString strExtensions = m_manager->GetExtension(m_index[0]);
extensions.Empty();
// one extension in the space or comma delimitid list
// one extension in the space or comma-delimited list
wxString strExt;
for ( const wxChar *p = strExtensions;; p++ ) {
for ( const wxChar *p = strExtensions; /* nothing */; p++ ) {
if ( *p == wxT(' ') || *p == wxT(',') || *p == wxT('\0') ) {
if ( !strExt.empty() ) {
extensions.Add(strExt);

View File

@@ -128,7 +128,7 @@ void wxGLContext::SetCurrent()
{
Display* display = (Display*) wxGetDisplay();
glXMakeCurrent(display, (Window) wxGetClientAreaWindow(m_window),
m_glContext );;
m_glContext );
}
}

View File

@@ -147,7 +147,7 @@ void wxPen::SetStipple( wxBitmap *stipple )
{
AllocExclusive();
M_PENDATA->m_stipple = *stipple;;
M_PENDATA->m_stipple = *stipple;
}
void wxPen::SetStyle( int style )