diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-01-09 19:50:01 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-01-09 19:59:26 +0000 |
| commit | e6884f989c2d955b8893d9b8eccc80f8cda0c7ca (patch) | |
| tree | d479e69eb8f3888f6345072aacb71b32a98d4cd6 /src/buffer.hh | |
| parent | 560b4ab0b5551091754bcd331d1ac471c077aaab (diff) | |
Style changes, replace typedefs with usings
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 13b958c5..9c648625 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -6,7 +6,6 @@ #include "option_manager.hh" #include "keymap_manager.hh" #include "string.hh" -#include "units.hh" #include <vector> #include <list> @@ -30,11 +29,11 @@ struct BufferCoord : LineAndColumn<BufferCoord, LineCount, ByteCount> class BufferIterator { public: - typedef char value_type; - typedef size_t difference_type; - typedef const value_type* pointer; - typedef const value_type& reference; - typedef std::random_access_iterator_tag iterator_category; + using value_type = char; + using difference_type = size_t; + using pointer = const value_type*; + using reference = const value_type&; + using iterator_category = std::random_access_iterator_tag; BufferIterator() : m_buffer(nullptr) {} BufferIterator(const Buffer& buffer, BufferCoord coord); @@ -202,7 +201,7 @@ private: Flags m_flags; struct Modification; - typedef std::vector<Modification> UndoGroup; + using UndoGroup = std::vector<Modification>; friend class UndoGroupOptimizer; std::vector<UndoGroup> m_history; |
