Skip to content

Commit c6e8916

Browse files
jeroenzdenop
authored andcommitted
fixes for C++11 (#1164)
1 parent ad6f3b4 commit c6e8916

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ccutil/unicharset.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ class UNICHARSET {
238238

239239
// Removes/replaces content that belongs in rendered text, but not in the
240240
// unicharset.
241-
static string CleanupString(const char* utf8_str) {
241+
static std::string CleanupString(const char* utf8_str) {
242242
return CleanupString(utf8_str, strlen(utf8_str));
243243
}
244-
static string CleanupString(const char* utf8_str, int length);
244+
static std::string CleanupString(const char* utf8_str, int length);
245245

246246
// Return a STRING containing debug information on the unichar, including
247247
// the id_to_unichar, its hex unicodes and the properties.
@@ -262,7 +262,7 @@ class UNICHARSET {
262262
// Adds a unichar representation to the set. Avoids setting old_style to true,
263263
// unless it is necessary to make the new unichar get added.
264264
void unichar_insert_backwards_compatible(const char* const unichar_repr) {
265-
string cleaned = CleanupString(unichar_repr);
265+
std::string cleaned = CleanupString(unichar_repr);
266266
if (cleaned != unichar_repr) {
267267
unichar_insert(unichar_repr, OldUncleanUnichars::kTrue);
268268
} else {

0 commit comments

Comments
 (0)