From e551549015ece1f8afae8e58396d52c17708b598 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 7 Apr 2021 01:43:56 +0200 Subject: [PATCH] Don't define unused variable in !wxHAS_NATIVE_READLINK case Also make it const because it can be. No real changes. --- 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 9d1d6b0253..d10ae513c2 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -1674,11 +1674,11 @@ bool wxFileName::GetShortcutTarget(const wxString& shortcutPath, wxFileName wxFileName::ResolveLink() { - wxString link = GetFullPath(); wxFileName linkTarget( *this ); // Only resolve links on platforms with readlink (e.g. Unix-like platforms) #if defined(wxHAS_NATIVE_READLINK) + const wxString link = GetFullPath(); wxStructStat st; // This means the link itself doesn't exist, so return an empty filename