Skip to content

Commit cddc4db

Browse files
committed
fix: fmtformat compilation
1 parent 23e3994 commit cddc4db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/exporter/gcode/postprocessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class PostProcessor
2626
void print(const std::string &format, Args&& ...args)
2727
{
2828
try {
29-
m_stream << fmt::format(format, std::forward<Args>(args)...) << "\n";
29+
m_stream << fmt::format(fmt::runtime(format), std::forward<Args>(args)...) << "\n";
3030
}
3131
catch (const fmt::format_error &exception) {
3232
throw common::GCodeFormatException(format, exception.what(), fmt::to_string(args.name)...);

src/model/path.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Path::ListUPtr Path::FromPolylines(geometry::Polyline::List &&polylines, const P
5151
Path::ListUPtr paths(size);
5252

5353
for (int i = 0; i < size; ++i) {
54-
static const char *pathNameFormat = "({}) {}";
54+
static constexpr char pathNameFormat[] = "({}) {}";
5555
const std::string pathName = fmt::format(pathNameFormat, layerName, i);
5656
paths[i].reset(new Path(std::move(polylines[i]), pathName, settings));
5757
}

0 commit comments

Comments
 (0)