summaryrefslogtreecommitdiffstats
path: root/src/server/UndoStack.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 01:20:27 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 01:20:27 -0400
commit44381dbda9dbf8d20894789fe8e3ea941b70a1d0 (patch)
tree27c4da20f5a796825f7485aa7a1f447ff423f0f6 /src/server/UndoStack.hpp
parent9126ed67acf17bb2009430cb6de25b2ffd783d8e (diff)
downloadingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.tar.gz
ingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.tar.bz2
ingen-44381dbda9dbf8d20894789fe8e3ea941b70a1d0.zip
Use default member initialization
Diffstat (limited to 'src/server/UndoStack.hpp')
-rw-r--r--src/server/UndoStack.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/server/UndoStack.hpp b/src/server/UndoStack.hpp
index a6d90e9c..081d3ff4 100644
--- a/src/server/UndoStack.hpp
+++ b/src/server/UndoStack.hpp
@@ -83,10 +83,7 @@ public:
std::deque<LV2_Atom*> events;
};
- UndoStack(URIs& uris, URIMap& map) noexcept
- : _uris(uris), _map(map), _depth(0)
- {
- }
+ UndoStack(URIs& uris, URIMap& map) noexcept : _uris(uris), _map(map) {}
int start_entry();
bool write(const LV2_Atom* msg, int32_t default_id=0) override;
@@ -109,7 +106,7 @@ private:
URIs& _uris;
URIMap& _map;
std::deque<Entry> _stack;
- int _depth;
+ int _depth{0};
};
} // namespace server