Compilation fix for Borland overload selection bug.
Avoid the following bogus compiler error: Error E2015 ..\..\src\common\filename.cpp 2589: Ambiguity between 'wxFileName::Exists(int) const at ..\..\src\common\filename.cpp:777' and 'wxFileName::Exists(const wxString &,int) at ..\..\src\common\filename.cpp:790' in function wxFileName::SetPermissions(int) by using an unambiguous overload. See #16592. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0fb7f1cd0b
commit
030c155c28
@ -2547,7 +2547,7 @@ bool wxFileName::SetPermissions(int permissions)
|
||||
{
|
||||
// Don't do anything for a symlink but first make sure it is one.
|
||||
if ( m_dontFollowLinks &&
|
||||
Exists(wxFILE_EXISTS_SYMLINK|wxFILE_EXISTS_NO_FOLLOW) )
|
||||
Exists(GetFullPath(), wxFILE_EXISTS_SYMLINK|wxFILE_EXISTS_NO_FOLLOW) )
|
||||
{
|
||||
// Looks like changing permissions for a symlinc is only supported
|
||||
// on BSD where lchmod is present and correctly implemented.
|
||||
|
Loading…
Reference in New Issue
Block a user