From e2e1b08a1a0fbb891320401abe4269d875e0cffe Mon Sep 17 00:00:00 2001 From: "Zane U. Ji" Date: Fri, 13 Dec 2013 23:43:06 +0800 Subject: [PATCH] Fixed a compiler warning: -Wreorder --- src/mypropertysheet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mypropertysheet.cpp b/src/mypropertysheet.cpp index 2c02471..78a32d3 100644 --- a/src/mypropertysheet.cpp +++ b/src/mypropertysheet.cpp @@ -49,17 +49,17 @@ MyPropertySheet::MyPropertySheet ( long style ) : wxPropertySheetDialog ( parent, id, title, position, size, style ) + , lang ( lang ) , properties ( propertiesParameter ) , applicationDir ( applicationDirParameter ) + , singleInstanceCheck ( singleInstanceCheckParameter ) , rememberOpenTabs ( rememberOpenTabsParameter ) , libxmlNetAccess ( libxmlNetAccessParameter ) - , singleInstanceCheck ( singleInstanceCheckParameter ) , saveBom ( saveBomParameter ) , unlimitedUndo ( unlimitedUndoParameter ) , restoreLayout ( restoreLayoutParameter ) , expandInternalEntities ( expandInternalEntitiesParameter ) , showFullPathOnFrame ( showFullPathOnFrameParameter ) - , lang ( lang ) { CreateButtons ( wxOK | wxCANCEL ); @@ -251,7 +251,7 @@ MyPropertySheet::~MyPropertySheet() void MyPropertySheet::OnOk ( wxCommandEvent& e ) { wxString testDir = applicationDirEdit->GetValue(); - if ( !wxFileName::DirExists ( testDir ) ) + if ( !wxDirExists ( testDir ) ) { wxMessageBox ( _ ( "Cannot access application directory" ), _ ( "Options" ) ); // tbd: show general tab