Fixed some uninitialized variables.

This commit is contained in:
dankan1890
2016-11-27 15:38:56 +01:00
parent abe2f0687f
commit a39013afd1
6 changed files with 11 additions and 11 deletions

View File

@@ -515,7 +515,7 @@ namespace nana
cur.level = _m_paragraph_level(str, end);
//First character type
bidi_char begin_char_type;
bidi_char begin_char_type = {};
const char_type * begin_character = nullptr;
for(const char_type * c = str; c < end; ++c)
@@ -616,7 +616,7 @@ namespace nana
e.bidi_char_type = bidi_char_type;
}
std::vector<unicode_bidi::entity>::iterator unicode_bidi::_m_search_first_character()
{
return levels_.begin();
@@ -811,7 +811,7 @@ namespace nana
//N1. A sequence of neutrals takes the direction of the surrounding strong text if the text on both sides has the same direction.
//European and Arabic numbers act as if they were R in terms of their influence on neutrals.
//Start-of-level-run (sor) and end-of-level-run (eor) are used at level run boundaries.
bidi_char left;
bidi_char left = {};
for(auto i = begin_character; i != end; ++i)
{
if(level_of_run != i->level)