mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Wrap boost::replace_all
This commit is contained in:
parent
c367736f85
commit
fa2deae2a8
8 changed files with 22 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue