diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2016-07-24 08:34:49 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2016-07-24 08:34:49 +0300 |
| commit | e3bf01d1f9063fa25ae0f0b104eb1539d0e941b6 (patch) | |
| tree | c3d189bede8adb72183b93974efefbb0586b7e8f /src | |
| parent | ef82c496eb8b565281b8f301e877a8a056266be8 (diff) | |
Replace C-style operators with their alphabetical equivalent
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer_manager.cc | 2 | ||||
| -rw-r--r-- | src/commands.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer_manager.cc b/src/buffer_manager.cc index 688e864a..9826de13 100644 --- a/src/buffer_manager.cc +++ b/src/buffer_manager.cc @@ -79,7 +79,7 @@ void BufferManager::backup_modified_buffers() for (auto& buf : m_buffers) { 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); } } diff --git a/src/commands.cc b/src/commands.cc index 6104975c..fa61a8c4 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -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 // or we try to write to it indirectly using e.g. a symlink, throw an error 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"); auto filename = parser.positional_count() == 0 ? |
