[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Patch: Refactoring LocatorBar

From: Dmitry <wipedout_at_yandex.ru>
Date: Thu, 04 Feb 2010 10:18:23 +0300

Hey.

The following patch addresses code duplication in LocatorBar.

Also in DocumentUpdated() some strange logic exists. "state" variable is initialized, then for each view if view data is not empty "state" is set to the state of the first line, then a loop runs where "state" might have been changed and finally "state" is unconditionally appended to the state array (m_arXXXXState.Add(state); line). Then control falls through to the next view and "state" is not unconditionally reset and so if the next view has empty view data "state" will preserve its value from the prior computations. Is that what is intended? Shouldn't "state" be reset at the same time as "identcount" is reset to 1?

Best wishes.
Dmitry.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2444730

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2010-02-04 08:18:36 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.