diff options
author | sgeerken <devnull@localhost> | 2012-07-11 11:56:43 +0200 |
---|---|---|
committer | sgeerken <devnull@localhost> | 2012-07-11 11:56:43 +0200 |
commit | 6c9cc43b902aa371a57e4554514d2e48c4cd43b7 (patch) | |
tree | db00e4d4cb65e113a4f464504bdb1edae6b95bf6 /dw/hyphenator.cc | |
parent | af4420e3bbd894c7ed21dc676dfdd35d7149bd32 (diff) |
Corrected bug in getHyphenator: wild pointers
Diffstat (limited to 'dw/hyphenator.cc')
-rw-r--r-- | dw/hyphenator.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dw/hyphenator.cc b/dw/hyphenator.cc index 258bbafb..7a1f5df7 100644 --- a/dw/hyphenator.cc +++ b/dw/hyphenator.cc @@ -82,7 +82,7 @@ Hyphenator *Hyphenator::getHyphenator (core::Platform *platform, TypedPair <TypedPointer <core::Platform>, ConstString> *pair = new TypedPair <TypedPointer <core::Platform>, ConstString> (new TypedPointer <core::Platform> (platform), - new ConstString (lang)); + new String (lang)); Hyphenator *hyphenator = hyphenators->get (pair); if (hyphenator) @@ -101,6 +101,10 @@ Hyphenator *Hyphenator::getHyphenator (core::Platform *platform, hyphenators->put (pair, hyphenator); } + //lout::misc::StringBuffer sb; + //hyphenators->intoStringBuffer (&sb); + //printf ("%s\n", sb.getChars ()); + return hyphenator; } |