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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2020-01-03 18:32:56 +0300
committerbubnikv <bubnikv@gmail.com>2020-01-03 18:33:04 +0300
commit9406b5044753cff3ed20ec28f6c5b6067e6fd5a3 (patch)
tree6ef6723a890c3baed35df058f0acbddced154919 /src/slic3r/Config
parent30f7a2b8e5b369319ada02455d5fec7633c46b8b (diff)
Const correctness improvements:
removed some unnecessary const_casts that remove const.
Diffstat (limited to 'src/slic3r/Config')
-rw-r--r--src/slic3r/Config/Version.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slic3r/Config/Version.cpp b/src/slic3r/Config/Version.cpp
index fcebf88d1..2104a6eea 100644
--- a/src/slic3r/Config/Version.cpp
+++ b/src/slic3r/Config/Version.cpp
@@ -205,7 +205,7 @@ size_t Index::load(const boost::filesystem::path &path)
#endif
++ idx_line;
// Skip the initial white spaces.
- char *key = left_trim(const_cast<char*>(line.data()));
+ char *key = left_trim(line.data());
if (*key == '#')
// Skip a comment line.
continue;