MCPcopy Create free account
hub / github.com/clementgallet/libTAS / undo

Method undo

src/external/qhexview/src/model/commands/replacecommand.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12void ReplaceCommand::undo() {
13 m_buffer->replace(m_offset, m_olddata);
14 Q_EMIT m_hexdocument->dataChanged(m_olddata, m_offset,
15 QHexDocument::ChangeReason::Replace);
16}
17
18void ReplaceCommand::redo() {
19 m_olddata = m_buffer->read(m_offset, m_data.length());

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected