minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -649,7 +649,7 @@ void wxMimeTypesManagerImpl::LoadGnomeMimeTypesFromMimeFile(const wxString& file
|
|||||||
|
|
||||||
const wxChar *pc;
|
const wxChar *pc;
|
||||||
size_t nLineCount = textfile.GetLineCount();
|
size_t nLineCount = textfile.GetLineCount();
|
||||||
for ( size_t nLine = 0;; nLine++ )
|
for ( size_t nLine = 0; /* nothing */; nLine++ )
|
||||||
{
|
{
|
||||||
if ( nLine < nLineCount )
|
if ( nLine < nLineCount )
|
||||||
{
|
{
|
||||||
@@ -805,7 +805,7 @@ void wxMimeTypesManagerImpl::GetGnomeMimeInfo(const wxString& sExtraDir)
|
|||||||
{
|
{
|
||||||
wxArrayString dirs;
|
wxArrayString dirs;
|
||||||
|
|
||||||
wxString gnomedir = wxGetenv( wxT("GNOMEDIR") );;
|
wxString gnomedir = wxGetenv( wxT("GNOMEDIR") );
|
||||||
if (!gnomedir.empty())
|
if (!gnomedir.empty())
|
||||||
{
|
{
|
||||||
gnomedir << wxT("/share");
|
gnomedir << wxT("/share");
|
||||||
@@ -1384,9 +1384,9 @@ bool wxFileTypeImpl::GetExtensions(wxArrayString& extensions)
|
|||||||
wxString strExtensions = m_manager->GetExtension(m_index[0]);
|
wxString strExtensions = m_manager->GetExtension(m_index[0]);
|
||||||
extensions.Empty();
|
extensions.Empty();
|
||||||
|
|
||||||
// one extension in the space or comma delimitid list
|
// one extension in the space or comma-delimited list
|
||||||
wxString strExt;
|
wxString strExt;
|
||||||
for ( const wxChar *p = strExtensions;; p++ ) {
|
for ( const wxChar *p = strExtensions; /* nothing */; p++ ) {
|
||||||
if ( *p == wxT(' ') || *p == wxT(',') || *p == wxT('\0') ) {
|
if ( *p == wxT(' ') || *p == wxT(',') || *p == wxT('\0') ) {
|
||||||
if ( !strExt.empty() ) {
|
if ( !strExt.empty() ) {
|
||||||
extensions.Add(strExt);
|
extensions.Add(strExt);
|
||||||
|
@@ -128,7 +128,7 @@ void wxGLContext::SetCurrent()
|
|||||||
{
|
{
|
||||||
Display* display = (Display*) wxGetDisplay();
|
Display* display = (Display*) wxGetDisplay();
|
||||||
glXMakeCurrent(display, (Window) wxGetClientAreaWindow(m_window),
|
glXMakeCurrent(display, (Window) wxGetClientAreaWindow(m_window),
|
||||||
m_glContext );;
|
m_glContext );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -147,7 +147,7 @@ void wxPen::SetStipple( wxBitmap *stipple )
|
|||||||
{
|
{
|
||||||
AllocExclusive();
|
AllocExclusive();
|
||||||
|
|
||||||
M_PENDATA->m_stipple = *stipple;;
|
M_PENDATA->m_stipple = *stipple;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxPen::SetStyle( int style )
|
void wxPen::SetStyle( int style )
|
||||||
|
Reference in New Issue
Block a user