X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fbd8b9bbb249d338fc64182c309e0159b5ee14f..c29c95fe24973b94fd724db767193171ca7c513d:/tests/interactive/output.cpp?ds=sidebyside diff --git a/tests/interactive/output.cpp b/tests/interactive/output.cpp index ff462c2176..3d6492cbcd 100644 --- a/tests/interactive/output.cpp +++ b/tests/interactive/output.cpp @@ -228,14 +228,10 @@ void InteractiveOutputTestCase::TestMimeAssociate() #ifdef TEST_MIME wxPuts(wxT("*** Testing creation of filetype association ***\n")); - wxFileTypeInfo ftInfo( - wxT("application/x-xyz"), - wxT("xyzview '%s'"), // open cmd - wxT(""), // print cmd - wxT("XYZ File"), // description - wxT(".xyz"), // extensions - wxNullPtr // end of extensions - ); + wxFileTypeInfo ftInfo("application/x-xyz"); + ftInfo.SetOpenCommand("xyzview '%s'"); + ftInfo.SetDescription("XYZ File"); + ftInfo.AddExtension(".xyz"); ftInfo.SetShortDesc(wxT("XYZFile")); // used under Win32 only wxFileType *ft = wxTheMimeTypesManager->Associate(ftInfo);