Replace C-style operators with their alphabetical equivalent

This commit is contained in:
Frank LENORMAND 2016-07-24 08:34:49 +03:00
parent ef82c496eb
commit e3bf01d1f9
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ void BufferManager::backup_modified_buffers()
for (auto& buf : m_buffers) for (auto& buf : m_buffers)
{ {
if ((buf->flags() & Buffer::Flags::File) and buf->is_modified() if ((buf->flags() & Buffer::Flags::File) and buf->is_modified()
and !(buf->flags() & Buffer::Flags::ReadOnly)) and not (buf->flags() & Buffer::Flags::ReadOnly))
write_buffer_to_backup_file(*buf); write_buffer_to_backup_file(*buf);
} }
} }

View File

@ -242,7 +242,7 @@ void write_buffer(const ParametersParser& parser, Context& context, const ShellC
// if the buffer is in read-only mode and we try to save it directly // if the buffer is in read-only mode and we try to save it directly
// or we try to write to it indirectly using e.g. a symlink, throw an error // or we try to write to it indirectly using e.g. a symlink, throw an error
if ((context.buffer().flags() & Buffer::Flags::ReadOnly) if ((context.buffer().flags() & Buffer::Flags::ReadOnly)
&& (parser.positional_count() == 0 || real_path(parser[0]) == buffer.name())) and (parser.positional_count() == 0 or real_path(parser[0]) == buffer.name()))
throw runtime_error("cannot overwrite the buffer when in readonly mode"); throw runtime_error("cannot overwrite the buffer when in readonly mode");
auto filename = parser.positional_count() == 0 ? auto filename = parser.positional_count() == 0 ?