Use std::min and std::max, not the misc versions.

This commit is contained in:
2025-08-10 17:08:42 -04:00
parent 6c3bf19bbd
commit 640ccd02d3
26 changed files with 216 additions and 226 deletions
+2 -2
View File
@@ -317,7 +317,7 @@ void Hyphenator::hyphenateSingleWord(core::Platform *platform,
if (p) {
for (int k = 0; p[k]; k++)
points.set(i + k,
lout::misc::max (points.get (i + k), p[k] - '0'));
std::max (points.get (i + k), p[k] - '0'));
}
}
}
@@ -352,7 +352,7 @@ void Hyphenator::hyphenateSingleWord(core::Platform *platform,
}
// Examine the points to build the break point list.
int n = lout::misc::min ((int)strlen (wordLc), points.size () - 2);
int n = std::min ((int)strlen (wordLc), points.size () - 2);
for (int i = 0; i < n; i++) {
if (points.get(i + 2) % 2) {
breakPos->increase ();