avoiding string conversions on 1st param of wxStat, as the latter is having a param of wxString now always and does the conversion internally

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-12-09 07:38:22 +00:00
parent 74b1f0b45e
commit 766fc09288
5 changed files with 8 additions and 21 deletions

View File

@@ -304,7 +304,7 @@ bool wxDir::HasSubDirs(const wxString& spec) const
// caller will learn it soon enough when it calls GetFirst(wxDIR)
// anyhow
wxStructStat stBuf;
if ( wxStat(M_DIR->GetName().c_str(), &stBuf) == 0 )
if ( wxStat(M_DIR->GetName(), &stBuf) == 0 )
{
switch ( stBuf.st_nlink )
{