mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-16 14:22:43 -07:00
Const correctness improvements:
removed some unnecessary const_casts that remove const.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user