Skip to content

Commit 8c8eb21

Browse files
committed
Fix compiler errors for old gcc
Travis CI with gcc 4.8 failed with errors. Signed-off-by: Stefan Weil <[email protected]>
1 parent a86143a commit 8c8eb21

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/ccutil/unicodes.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
namespace tesseract {
2222

23-
constexpr const char *kLRM = "\u200E"; // Left-to-Right Mark
24-
constexpr const char *kRLM = "\u200F"; // Right-to-Left Mark
25-
constexpr const char *kRLE = "\u202A"; // Right-to-Left Embedding
26-
constexpr const char *kPDF = "\u202C"; // Pop Directional Formatting
23+
const char * const kLRM = "\u200E"; // Left-to-Right Mark
24+
const char * const kRLM = "\u200F"; // Right-to-Left Mark
25+
const char * const kRLE = "\u202A"; // Right-to-Left Embedding
26+
const char * const kPDF = "\u202C"; // Pop Directional Formatting
2727

2828
} // namespace

src/classify/featdefs.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
/*-----------------------------------------------------------------------------
3030
Global Data Definitions and Declarations
3131
-----------------------------------------------------------------------------*/
32-
constexpr const char* kMicroFeatureType = "mf";
33-
constexpr const char* kCNFeatureType = "cn";
34-
constexpr const char* kIntFeatureType = "if";
35-
constexpr const char* kGeoFeatureType = "tb";
32+
const char* const kMicroFeatureType = "mf";
33+
const char* const kCNFeatureType = "cn";
34+
const char* const kIntFeatureType = "if";
35+
const char* const kGeoFeatureType = "tb";
3636

3737
// Define all of the parameters for the MicroFeature type.
3838
StartParamDesc(MicroFeatureParams)

0 commit comments

Comments
 (0)