minor fix for MSVC and C++20
Some checks failed
CodeQL / Analyze (cpp) (push) Has been cancelled
Doxygen build&deploy / build (push) Has been cancelled
MSVC-CodeAnalysis / Analyze (push) Has been cancelled

This commit is contained in:
jkriege2 2024-10-18 14:29:17 +02:00
parent f41be57613
commit 966a537f4a

View File

@ -484,7 +484,8 @@ QString JKQTPCoordinateAxis::floattolabel(double data, int past_comma) const {
#if __cplusplus >= 202002L
# ifdef __cpp_lib_format
case JKQTPCALTformat: {
return QString::fromStdString(std::vformat(axisStyle.tickFormatFormat.toStdString(), std::make_format_args(data, tickUnitName.toStdString())));
const std::string tickUName=tickUnitName.toStdString();
return QString::fromStdString(std::vformat(axisStyle.tickFormatFormat.toStdString(), std::make_format_args(data, tickUName)));
}; break;
/** \copydoc JKQTPCoordinateAxisStyle::tickFormatFormat */
void setTickFormatFormat(const QString& __value);