mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 05:15:59 +08:00
Use boost::nowide::ifstream instead of std::ifstream
This commit is contained in:
parent
b46148be24
commit
d6333dc338
@ -11,8 +11,7 @@
|
|||||||
#include "libslic3r/libslic3r.h"
|
#include "libslic3r/libslic3r.h"
|
||||||
#include "GLCanvas3D.hpp"
|
#include "GLCanvas3D.hpp"
|
||||||
|
|
||||||
#include <iostream>
|
#include <boost/nowide/cstdio.hpp>
|
||||||
#include <fstream>
|
|
||||||
|
|
||||||
#include <boost/property_tree/ptree.hpp>
|
#include <boost/property_tree/ptree.hpp>
|
||||||
#include <boost/property_tree/json_parser.hpp>
|
#include <boost/property_tree/json_parser.hpp>
|
||||||
@ -182,7 +181,7 @@ std::optional<std::unique_ptr<GLModel>> GLCanvas3D::get_current_marker_model() c
|
|||||||
if (! seq)
|
if (! seq)
|
||||||
return out;
|
return out;
|
||||||
try {
|
try {
|
||||||
std::ifstream in(resources_dir() + "/data/printer_gantries/geometries.txt");
|
boost::nowide::ifstream in(resources_dir() + "/data/printer_gantries/geometries.txt");
|
||||||
boost::property_tree::ptree pt;
|
boost::property_tree::ptree pt;
|
||||||
boost::property_tree::read_json(in, pt);
|
boost::property_tree::read_json(in, pt);
|
||||||
for (const auto& printer : pt.get_child("printers")) {
|
for (const auto& printer : pt.get_child("printers")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user