Forgot to remove string_printf from 3mf.cpp
This commit is contained in:
parent
5be66a52c0
commit
5d77c34567
@ -228,15 +228,6 @@ bool is_valid_object_type(const std::string& type)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class...Args> std::string string_printf(const char *const fmt, Args &&...args)
|
|
||||||
{
|
|
||||||
int bufflen = snprintf(nullptr, 0, fmt, std::forward<Args>(args)...);
|
|
||||||
std::vector<char> buffer(size_t(bufflen), '\0');
|
|
||||||
|
|
||||||
snprintf(buffer.data(), buffer.size(), fmt, std::forward<Args>(args)...);
|
|
||||||
return std::string(buffer.begin(), buffer.end());
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
//! macro used to mark string used at localization,
|
//! macro used to mark string used at localization,
|
||||||
|
Loading…
Reference in New Issue
Block a user