From 7ffd3f0e8bf1a64f7d1e10671281509dae3ae20a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 14 Sep 2012 22:25:46 +0000 Subject: [PATCH] No changes, just remove unnecessary variable initialization. Combine variable declaration and initialization. Closes #14659. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/stringops.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/stringops.cpp b/src/common/stringops.cpp index 599c05c1d0..ff44bcd182 100644 --- a/src/common/stringops.cpp +++ b/src/common/stringops.cpp @@ -254,7 +254,6 @@ wxStringOperationsUtf8::DecodeNonAsciiChar(wxStringImpl::const_iterator i) { wxASSERT( IsValidUtf8LeadByte(*i) ); - wxUniChar::value_type code = 0; size_t len = GetUtf8CharLength(*i); wxASSERT_MSG( len <= 4, wxT("invalid UTF-8 sequence length") ); @@ -282,7 +281,7 @@ wxStringOperationsUtf8::DecodeNonAsciiChar(wxStringImpl::const_iterator i) wxASSERT_MSG( ((unsigned char)*i & s_leadMarkerMask[len-1]) == s_leadMarkerVal[len-1], wxT("invalid UTF-8 lead byte") ); - code = (unsigned char)*i & s_leadValueMask[len-1]; + wxUniChar::value_type code = (unsigned char)*i & s_leadValueMask[len-1]; // all remaining bytes, if any, are handled in the same way regardless of // sequence's length: