Use STL replace instead of Boost in JSON_SETTINGS

This commit is contained in:
Jon Evans 2020-03-02 19:18:52 -05:00
parent a8dea9274f
commit 08ef7de493
1 changed files with 2 additions and 3 deletions

View File

@ -18,8 +18,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <utility>
@ -272,7 +271,7 @@ bool JSON_SETTINGS::MigrateFromLegacy( wxConfigBase* aLegacyConfig )
nlohmann::json::json_pointer JSON_SETTINGS::PointerFromString( std::string aPath )
{
boost::replace_all( aPath, ".", "/" );
std::replace( aPath.begin(), aPath.end(), '.', '/' );
aPath.insert( 0, "/" );
nlohmann::json::json_pointer p;