Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-06-28 22:46:23 +0300
committerbubnikv <bubnikv@gmail.com>2018-06-28 22:46:23 +0300
commit082f88ad5ffb641c890a470a08bb8e8d1eaaf0ee (patch)
tree748eb62137e08bc7b5f1ffd867a6e99c857f6aa6 /xs
parent26b003073b48b56356e1d00fd5e064cca9f9b557 (diff)
gcc / clang did not like backslashes inside comments
Diffstat (limited to 'xs')
-rw-r--r--xs/src/libslic3r/Config.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xs/src/libslic3r/Config.cpp b/xs/src/libslic3r/Config.cpp
index 989a4ab82..5db093c5c 100644
--- a/xs/src/libslic3r/Config.cpp
+++ b/xs/src/libslic3r/Config.cpp
@@ -20,7 +20,7 @@
namespace Slic3r {
-// Escape \n, \r and \\
+// Escape \n, \r and backslash
std::string escape_string_cstyle(const std::string &str)
{
// Allocate a buffer twice the input string length,
@@ -94,7 +94,7 @@ std::string escape_strings_cstyle(const std::vector<std::string> &strs)
return std::string(out.data(), outptr - out.data());
}
-// Unescape \n, \r and \\
+// Unescape \n, \r and backslash
bool unescape_string_cstyle(const std::string &str, std::string &str_out)
{
std::vector<char> out(str.size(), 0);