Buffer: small style fixes

This commit is contained in:
Maxime Coste 2013-01-23 13:47:45 +01:00
parent 9dbc6adcda
commit f14bc5e310
2 changed files with 2 additions and 2 deletions

View File

@ -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};
} }
}; };

View File

@ -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;