X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fcommandline%2Ftests%2Fcmdlinehelpmodule.cpp;h=5fada52c35de53dd3fec1d0fd73e1095e89bb9fe;hb=1d597ac0415f9a847715ef65daa55fe1312bd59f;hp=7be3fb5ed7e738c8b02d5605beeaca477390a70d;hpb=8bb9e38caa59684b3731a434a603c78beaf9a87a;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/commandline/tests/cmdlinehelpmodule.cpp b/src/gromacs/commandline/tests/cmdlinehelpmodule.cpp index 7be3fb5ed7..5fada52c35 100644 --- a/src/gromacs/commandline/tests/cmdlinehelpmodule.cpp +++ b/src/gromacs/commandline/tests/cmdlinehelpmodule.cpp @@ -48,7 +48,7 @@ #include "gromacs/commandline/cmdlinemodulemanager.h" #include "gromacs/options/basicoptions.h" #include "gromacs/options/options.h" -#include "gromacs/utility/file.h" +#include "gromacs/utility/textwriter.h" #include "gromacs/onlinehelp/tests/mock_helptopic.h" #include "testutils/cmdlinetest.h" @@ -123,7 +123,7 @@ TEST_F(CommandLineHelpModuleTest, ExportsHelp) "test", "help", "-export", "rst" }; // TODO: Find a more elegant solution, or get rid of the links.dat altogether. - gmx::File::writeFileFromString("links.dat", ""); + gmx::TextWriter::writeFileFromString("links.dat", ""); CommandLine args(cmdline); initManager(args, "test"); MockOptionsModule &mod1 = addOptionsModule("module", "First module");