MCPcopy Create free account
hub / github.com/TortoiseGit/TortoiseGit / SetData

Method SetData

src/TortoiseMerge/ViewData.h:99–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 int GetCount() const { return static_cast<int>(m_data.size()); }
98
99 void SetData(int index, const viewdata& data)
100 {
101 bool oldmarked = m_data[index].marked;
102 bool marked = data.marked;
103 if (oldmarked && !marked && m_nMarkedBlocks > 0)
104 m_nMarkedBlocks--;
105 else if (!oldmarked && marked)
106 m_nMarkedBlocks++;
107 m_data[index] = data;
108 }
109 void SetState(int index, DiffState state) {m_data[index].state = state;}
110 void SetLine(int index, const CString& sLine) {m_data[index].sLine = sLine;}
111 void SetLineNumber(int index, int linenumber) {m_data[index].linenumber = linenumber;}

Callers 7

DoTwoWayDiffMethod · 0.45
DoMethod · 0.45
SetViewDataMethod · 0.45
ShowCommitsByAuthorMethod · 0.45
ShowByDateMethod · 0.45
DrawOthersMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected