From 3ae438b9ac66841488de4da04edb91306b418526 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Sat, 8 Apr 2017 11:44:02 +0400 Subject: [PATCH] Fix wrong variable name The typo resulted in, depending on compiler used, an error ("undeclared identifier") or warning. Fix by using the intended name. Regression since 55523513936296d044f9440b27d4f95a038d021a. --- tests/file/filefn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/file/filefn.cpp b/tests/file/filefn.cpp index 9655d5a299..7669d03ad1 100644 --- a/tests/file/filefn.cpp +++ b/tests/file/filefn.cpp @@ -512,7 +512,7 @@ void FileFunctionsTestCase::PathOnly() { wxString name = wxT("horse.bmp"); // Get absolute path to horse.bmp - wxFileName filename(filename); + wxFileName filename(name); CPPUNIT_ASSERT( filename.MakeAbsolute() ); wxString pathOnly = wxPathOnly(filename.GetFullPath());