mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-03 17:05:43 +02:00
Const correctness improvements:
removed some unnecessary const_casts that remove const.
This commit is contained in:
@@ -149,7 +149,7 @@ private:
|
||||
Semver(semver_t ver) : ver(ver) {}
|
||||
|
||||
static semver_t semver_zero() { return { 0, 0, 0, nullptr, nullptr }; }
|
||||
static char * strdup(const std::string &str) { return ::semver_strdup(const_cast<char*>(str.c_str())); }
|
||||
static char * strdup(const std::string &str) { return ::semver_strdup(str.data()); }
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user