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/GUI/RemovableDriveManager.cpp
parent30f7a2b8e5b369319ada02455d5fec7633c46b8b (diff)
Const correctness improvements:
removed some unnecessary const_casts that remove const.
Diffstat (limited to 'src/slic3r/GUI/RemovableDriveManager.cpp')
-rw-r--r--src/slic3r/GUI/RemovableDriveManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slic3r/GUI/RemovableDriveManager.cpp b/src/slic3r/GUI/RemovableDriveManager.cpp
index 353337e47..9ef31748d 100644
--- a/src/slic3r/GUI/RemovableDriveManager.cpp
+++ b/src/slic3r/GUI/RemovableDriveManager.cpp
@@ -325,7 +325,7 @@ void RemovableDriveManager::inspect_file(const std::string &path, const std::str
{
if(pw->pw_name == username)
{
- std::string name = basename(const_cast<char*>(path.c_str()));
+ std::string name = basename(path.data());
m_current_drives.push_back(DriveData(name,path));
}
}