From 1c4cd9e047e27a54b3587071a0d76f9c599f6d18 Mon Sep 17 00:00:00 2001 From: David Surovell Date: Sat, 7 Jan 2006 06:09:50 +0000 Subject: [PATCH] minor cleanup git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/mimetype.cpp | 8 ++++---- src/x11/glcanvas.cpp | 2 +- src/x11/pen.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index e0bce49d8d..d5ff6698cc 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -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); diff --git a/src/x11/glcanvas.cpp b/src/x11/glcanvas.cpp index dc1ae653ba..11eda0cfe5 100644 --- a/src/x11/glcanvas.cpp +++ b/src/x11/glcanvas.cpp @@ -128,7 +128,7 @@ void wxGLContext::SetCurrent() { Display* display = (Display*) wxGetDisplay(); glXMakeCurrent(display, (Window) wxGetClientAreaWindow(m_window), - m_glContext );; + m_glContext ); } } diff --git a/src/x11/pen.cpp b/src/x11/pen.cpp index f6dccc9a9e..5dd99899cb 100644 --- a/src/x11/pen.cpp +++ b/src/x11/pen.cpp @@ -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 ) -- 2.45.2