don't check if the file exists if we don't use it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-03-18 21:08:17 +00:00
parent b2c3b76648
commit d2ea08b9e1

View File

@ -344,7 +344,7 @@ void wxFileConfig::Init()
// It's not an error if (one of the) file(s) doesn't exist.
// parse the global file
if ( m_fnGlobalFile.FileExists() )
if ( m_fnGlobalFile.IsOk() && m_fnGlobalFile.FileExists() )
{
wxTextFile fileGlobal(m_fnGlobalFile.GetFullPath());
@ -360,7 +360,7 @@ void wxFileConfig::Init()
}
// parse the local file
if ( m_fnLocalFile.FileExists() )
if ( m_fnLocalFile.IsOk() && m_fnLocalFile.FileExists() )
{
wxTextFile fileLocal(m_fnLocalFile.GetFullPath());
if ( fileLocal.Open(*m_conv/*ignored in ANSI build*/) )