summaryrefslogtreecommitdiff
path: root/media-gfx/prusaslicer/files/prusaslicer-2.8.1-fstream.patch
blob: b4a92de67ab6a13314c38707fccb04ce73085ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- a/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp
+++ b/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp
@@ -1595,7 +1595,7 @@ void GLGizmoSVG::draw_filename(){
             if (dlg.ShowModal() == wxID_OK ){
                 last_used_directory = dlg.GetDirectory();
                 std::string out_path_str(into_u8(dlg.GetPath()));
-                boost::nowide::ofstream stream(out_path_str);
+                std::ofstream stream(out_path_str);
                 if (stream.is_open()){
                     stream << *svg.file_data;
 
--- a/src/slic3r/GUI/PresetArchiveDatabase.cpp
+++ b/src/slic3r/GUI/PresetArchiveDatabase.cpp
@@ -514,7 +514,7 @@ void PresetArchiveDatabase::load_app_manifest_json()
 	if (!fs::exists(path, ec) || ec) {
 		copy_initial_manifest();
 	}
-	boost::nowide::ifstream file(path.string());
+	std::ifstream file(path.string());
 	std::string data;
 	if (file.is_open()) {
 		std::string line;
@@ -681,7 +681,7 @@ void PresetArchiveDatabase::save_app_manifest_json() const
 	data += "]";
 
 	std::string path = get_stored_manifest_path().string();
-	boost::nowide::ofstream file(path);
+	std::ofstream file(path);
 	if (file.is_open()) {
 		file << data;
 		file.close();
@@ -916,4 +916,4 @@ void PresetArchiveDatabase::sync_blocking()
 	read_server_manifest(std::move(manifest));
 }
 
-}} // Slic3r::GUI
\ No newline at end of file
+}} // Slic3r::GUI
--- a/src/slic3r/Utils/Http.cpp
+++ b/src/slic3r/Utils/Http.cpp
@@ -301,7 +301,7 @@ void Http::priv::form_add_file(const char *name, const fs::path &path, const cha
 //FIXME may throw! Is the caller aware of it?
 void Http::priv::set_post_body(const fs::path &path)
 {
-	boost::nowide::ifstream file(path.string());
+	std::ifstream file(path.string());
 	std::string file_content { std::istreambuf_iterator<char>(file), std::istreambuf_iterator<char>() };
 	postfields = std::move(file_content);
 }