mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Wrap boost::replace_all
This commit is contained in:
parent
c367736f85
commit
fa2deae2a8
8 changed files with 22 additions and 19 deletions
|
|
@ -55,12 +55,11 @@
|
|||
#include <warnings.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <deque>
|
||||
#include <numeric>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
|
||||
using node::BLOCKFILE_CHUNK_SIZE;
|
||||
using node::BlockManager;
|
||||
using node::BlockMap;
|
||||
|
|
@ -1577,7 +1576,7 @@ static void AlertNotify(const std::string& strMessage)
|
|||
std::string singleQuote("'");
|
||||
std::string safeStatus = SanitizeString(strMessage);
|
||||
safeStatus = singleQuote+safeStatus+singleQuote;
|
||||
boost::replace_all(strCmd, "%s", safeStatus);
|
||||
ReplaceAll(strCmd, "%s", safeStatus);
|
||||
|
||||
std::thread t(runCommand, strCmd);
|
||||
t.detach(); // thread runs free
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue