From 30f3d382db45919f65dc42b58e5a36f1919cbe0e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 11 Oct 2014 15:47:59 +0000 Subject: [PATCH] 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/branches/WX_3_0_BRANCH@77987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filename.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filename.cpp b/src/common/filename.cpp index fcbc0e7206..9123ee13b4 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -2595,7 +2595,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.