Commit 5b351397 for tesseract
commit 5b351397b7c4c257df91cddc5239784aafddb2bf
Author: Stefan Weil <sw@weilnetz.de>
Date: Thu Jun 4 18:08:37 2026 +0200
Replace C-style arrays with std::array (sort include statements)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
diff --git a/src/ccstruct/blobbox.h b/src/ccstruct/blobbox.h
index 497da78b..9915a1ce 100644
--- a/src/ccstruct/blobbox.h
+++ b/src/ccstruct/blobbox.h
@@ -34,9 +34,8 @@
#include "tprintf.h" // for tprintf
#include "werd.h" // for WERD_LIST
-#include <cinttypes> // for PRId32
-
#include <array>
+#include <cinttypes> // for PRId32
#include <cmath> // for std::sqrt
#include <cstdint> // for int16_t, int32_t
diff --git a/src/ccstruct/coutln.h b/src/ccstruct/coutln.h
index 043de38e..bf00eacf 100644
--- a/src/ccstruct/coutln.h
+++ b/src/ccstruct/coutln.h
@@ -27,10 +27,9 @@
#include <tesseract/export.h> // for DLLSYM
-#include <cstdint> // for int16_t, int32_t
-
#include <array>
#include <bitset> // for std::bitset<16>
+#include <cstdint> // for int16_t, int32_t
struct Pix;
diff --git a/src/ccutil/unicharcompress.h b/src/ccutil/unicharcompress.h
index 45889d26..16e4e564 100644
--- a/src/ccutil/unicharcompress.h
+++ b/src/ccutil/unicharcompress.h
@@ -21,11 +21,10 @@
#ifndef TESSERACT_CCUTIL_UNICHARCOMPRESS_H_
#define TESSERACT_CCUTIL_UNICHARCOMPRESS_H_
+#include <array>
#include <unordered_map>
#include <vector>
-#include <array>
-
#include "serialis.h"
#include "unicharset.h"