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 5552351393.
This commit is contained in:
Dimitri Schoolwerth
2017-04-08 11:44:02 +04:00
parent 69110bd470
commit 3ae438b9ac

View File

@@ -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());