Commit 93ae5c6e for tesseract

commit 93ae5c6e32a1b3f92a2650201b82c863c2f30ab1
Author: Stefan Weil <sw@weilnetz.de>
Date:   Thu Jun 4 14:20:29 2026 +0200

    Use pass-by-reference instead of pass-by-value

    Signed-off-by: Stefan Weil <sw@weilnetz.de>

diff --git a/src/tesseract.cpp b/src/tesseract.cpp
index 8ed2c1d5..08488bda 100644
--- a/src/tesseract.cpp
+++ b/src/tesseract.cpp
@@ -313,7 +313,7 @@ static bool checkArgValues(int arg, const char *mode, int count) {
 }

 // Convert a symbolic or numeric string to an OEM value.
-static int stringToOEM(const std::string arg) {
+static int stringToOEM(const std::string &arg) {
   std::map<std::string, int> oem_map = {
     {"0", 0},
     {"1", 1},
@@ -328,7 +328,7 @@ static int stringToOEM(const std::string arg) {
   return it == oem_map.end() ? -1 : it->second;
 }

-static int stringToPSM(const std::string arg) {
+static int stringToPSM(const std::string &arg) {
   std::map<std::string, int> psm_map = {
     {"0", 0},
     {"1", 1},