Don't define unused variable in !wxHAS_NATIVE_READLINK case
Also make it const because it can be. No real changes.
This commit is contained in:
@@ -1674,11 +1674,11 @@ bool wxFileName::GetShortcutTarget(const wxString& shortcutPath,
|
|||||||
|
|
||||||
wxFileName wxFileName::ResolveLink()
|
wxFileName wxFileName::ResolveLink()
|
||||||
{
|
{
|
||||||
wxString link = GetFullPath();
|
|
||||||
wxFileName linkTarget( *this );
|
wxFileName linkTarget( *this );
|
||||||
|
|
||||||
// Only resolve links on platforms with readlink (e.g. Unix-like platforms)
|
// Only resolve links on platforms with readlink (e.g. Unix-like platforms)
|
||||||
#if defined(wxHAS_NATIVE_READLINK)
|
#if defined(wxHAS_NATIVE_READLINK)
|
||||||
|
const wxString link = GetFullPath();
|
||||||
wxStructStat st;
|
wxStructStat st;
|
||||||
|
|
||||||
// This means the link itself doesn't exist, so return an empty filename
|
// This means the link itself doesn't exist, so return an empty filename
|
||||||
|
Reference in New Issue
Block a user