Fix warning about uninitialized variable inside stream.peak():

openmw/mwgui/bookpage.cpp:394:13: warning: ‘*((void*)& stream +24)’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
pull/37/head
Lukasz Gromanowski 11 years ago
parent 16b3927f17
commit 9b73d23139

@ -14,12 +14,12 @@ public:
static UnicodeChar sBadChar () { return UnicodeChar (0xFFFFFFFF); }
Utf8Stream (Point begin, Point end) :
cur (begin), nxt (begin), end (end)
cur (begin), nxt (begin), end (end), val(Utf8Stream::sBadChar())
{
}
Utf8Stream (std::pair <Point, Point> range) :
cur (range.first), nxt (range.first), end (range.second)
cur (range.first), nxt (range.first), end (range.second), val(Utf8Stream::sBadChar())
{
}

Loading…
Cancel
Save