Skip to content

Commit

Permalink
Fix compiler errors for old gcc
Browse files Browse the repository at this point in the history
Travis CI with gcc 4.8 failed with errors.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed May 26, 2019
1 parent a86143a commit 8c8eb21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/ccutil/unicodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

namespace tesseract {

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

} // namespace
8 changes: 4 additions & 4 deletions src/classify/featdefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
/*-----------------------------------------------------------------------------
Global Data Definitions and Declarations
-----------------------------------------------------------------------------*/
constexpr const char* kMicroFeatureType = "mf";
constexpr const char* kCNFeatureType = "cn";
constexpr const char* kIntFeatureType = "if";
constexpr const char* kGeoFeatureType = "tb";
const char* const kMicroFeatureType = "mf";
const char* const kCNFeatureType = "cn";
const char* const kIntFeatureType = "if";
const char* const kGeoFeatureType = "tb";

// Define all of the parameters for the MicroFeature type.
StartParamDesc(MicroFeatureParams)
Expand Down

0 comments on commit 8c8eb21

Please sign in to comment.