struct Operation
{
Snapshot m_snapshot;
- CopiedString m_command;
+ std::string m_command;
Operation( const char* command )
: m_command( command ){
m_undoables.erase( undoable );
}
void setLevels( std::size_t levels ){
- if ( levels > MAX_UNDO_LEVELS() ) {
+ if ( levels > std::size_t(MAX_UNDO_LEVELS()) ) {
levels = MAX_UNDO_LEVELS();
}