Buffer: small style fixes
This commit is contained in:
parent
9dbc6adcda
commit
f14bc5e310
|
@ -201,7 +201,7 @@ struct Buffer::Modification
|
||||||
case Erase: inverse_type = Insert; break;
|
case Erase: inverse_type = Insert; break;
|
||||||
default: assert(false);
|
default: assert(false);
|
||||||
}
|
}
|
||||||
return Modification(inverse_type, position, content);
|
return {inverse_type, position, content};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ public:
|
||||||
|
|
||||||
const Buffer& buffer() const;
|
const Buffer& buffer() const;
|
||||||
const BufferCoord& coord() const { return m_coord; }
|
const BufferCoord& coord() const { return m_coord; }
|
||||||
LineCount line() const { return m_coord.line; }
|
LineCount line() const { return m_coord.line; }
|
||||||
ByteCount column() const { return m_coord.column; }
|
ByteCount column() const { return m_coord.column; }
|
||||||
ByteCount offset() const;
|
ByteCount offset() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user