Wrap boost::replace_all

This commit is contained in:
MacroFake 2022-05-05 08:28:29 +02:00
parent c367736f85
commit fa2deae2a8
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
8 changed files with 22 additions and 19 deletions

View file

@ -76,7 +76,6 @@
#include <malloc.h>
#endif
#include <boost/algorithm/string/replace.hpp>
#include <univalue.h>
#include <fstream>
@ -1253,7 +1252,7 @@ fs::path GetSpecialFolderPath(int nFolder, bool fCreate)
std::string ShellEscape(const std::string& arg)
{
std::string escaped = arg;
boost::replace_all(escaped, "'", "'\"'\"'");
ReplaceAll(escaped, "'", "'\"'\"'");
return "'" + escaped + "'";
}
#endif