Remove fmt::format and replace with std::format

This commit is contained in:
Alexander Bock
2024-03-24 20:19:14 +01:00
parent 9878bfc8f7
commit 3ba346a227
246 changed files with 1343 additions and 1300 deletions

View File

@@ -741,7 +741,7 @@ void TouchInteraction::computeVelocities(const std::vector<TouchInputHolder>& li
if (pinchConsecCt > 0 && action != InteractionType::PINCH) {
if (pinchConsecCt > 3) {
LDEBUG(fmt::format(
LDEBUG(std::format(
"PINCH gesture ended with {} drag distance and {} counts",
pinchConsecZoomFactor, pinchConsecCt
));
@@ -1005,7 +1005,7 @@ void TouchInteraction::step(double dt, bool directTouch) {
// Because of heightmaps we need to ensure we don't go through the surface
if (_zoomInLimit.value() < nodeRadius) {
#ifdef TOUCH_DEBUG_PROPERTIES
LINFO(fmt::format(
LINFO(std::format(
"Zoom In limit should be larger than anchor "
"center to surface, setting it to {}", zoomInBounds
));
@@ -1021,7 +1021,7 @@ void TouchInteraction::step(double dt, bool directTouch) {
// Make sure zoom in limit is not larger than zoom out limit
if (zoomInBounds > zoomOutBounds) {
LWARNING(fmt::format(
LWARNING(std::format(
"Zoom In Limit should be smaller than Zoom Out Limit",
zoomOutBounds
));
@@ -1069,7 +1069,7 @@ void TouchInteraction::step(double dt, bool directTouch) {
}
else if (currentPosViolatingZoomOutLimit) {
#ifdef TOUCH_DEBUG_PROPERTIES
LINFO(fmt::format(
LINFO(std::format(
"You are outside zoom out {} limit, only zoom in allowed",
zoomOutBounds
));
@@ -1112,7 +1112,7 @@ void TouchInteraction::step(double dt, bool directTouch) {
//Show velocity status every N frames
if (++stepVelUpdate >= 60) {
stepVelUpdate = 0;
LINFO(fmt::format(
LINFO(std::format(
"DistToFocusNode {} stepZoomVelUpdate {}",
length(centerToCamera), _vel.zoom
));

View File

@@ -254,7 +254,7 @@ Win32TouchHook::Win32TouchHook(void* nativeWindow) {
}
if (!gTouchHook) {
LINFO(fmt::format("Failed to setup WindowsHook for touch input redirection"));
LINFO(std::format("Failed to setup WindowsHook for touch input redirection"));
#ifdef ENABLE_TUIOMESSAGES
delete gTuioServer;
#endif

View File

@@ -95,7 +95,7 @@ TouchModule::TouchModule()
FactoryManager::ref().factory<Renderable>();
if (!fRenderable->hasClass(s)) {
LWARNING(fmt::format(
LWARNING(std::format(
"In property 'DefaultDirectTouchRenderableTypes': '{}' is not a "
"registered renderable type. Ignoring", s
));