mirror of
https://github.com/love2d/love.git
synced 2026-08-20 20:49:54 +02:00
Removed silly exception case
This commit is contained in:
@@ -61,18 +61,8 @@ Rasterizer *Font::newRasterizer(love::image::ImageData *data, std::string text)
|
|||||||
utf8::iterator<std::string::const_iterator> end(text.end(), text.begin(), text.end());
|
utf8::iterator<std::string::const_iterator> end(text.end(), text.begin(), text.end());
|
||||||
|
|
||||||
while (i != end)
|
while (i != end)
|
||||||
{
|
|
||||||
if (numglyphs >= strlen)
|
|
||||||
throw love::Exception("foo");
|
|
||||||
|
|
||||||
glyphs[numglyphs++] = *i++;
|
glyphs[numglyphs++] = *i++;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (love::Exception &)
|
|
||||||
{
|
|
||||||
delete [] glyphs;
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
catch (utf8::exception &e)
|
catch (utf8::exception &e)
|
||||||
{
|
{
|
||||||
delete [] glyphs;
|
delete [] glyphs;
|
||||||
|
|||||||
Reference in New Issue
Block a user