| 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;} |
no outgoing calls
no test coverage detected