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

Re: [T-Merge Patch] Reduce code duplication

From: Oto BREZINA <otik_at_printflow.eu>
Date: Sat, 23 Apr 2011 17:51:11 +0200

On 2011-04-23 14:09, Stefan Küng wrote:
> On 22.04.2011 23:36, Oto BREZINA wrote:
>> * reduce code duplication - use same code for UseLeftFile as is in
>> UseLeftBlock
> You're using a method/function named GetViewSelection() which doesn't exist.
Hmm, either we will commit it with next changes or use old code:
void CRightView::UseLeftFile()
  {
     if (!HasSelection())
          return;

     int nFirstViewLine = m_Screen2View[m_nSelBlockStart];
     int nLastViewLine = m_Screen2View[m_nSelBlockEnd];

     return UseBlock(nFirstViewLine, nLastViewLine);
}
> Stefan

-- 
Oto BREZINA, Printflow s.r.o., EU
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2723409
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-04-23 17:51:18 CEST

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