diff options
author | David Robillard <d@drobilla.net> | 2020-08-02 12:19:54 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 12:51:11 +0200 |
commit | 8123b3ff3aee3a161723c06a0d88141a0e8b7841 (patch) | |
tree | 82401219c53b678fcb3eab92904428e7b570a691 /src/server/UndoStack.cpp | |
parent | 8e0ab708ccb604c3224da2386dde609cb30de2b7 (diff) | |
download | ingen-8123b3ff3aee3a161723c06a0d88141a0e8b7841.tar.gz ingen-8123b3ff3aee3a161723c06a0d88141a0e8b7841.tar.bz2 ingen-8123b3ff3aee3a161723c06a0d88141a0e8b7841.zip |
Fix shadow warnings
Diffstat (limited to 'src/server/UndoStack.cpp')
-rw-r--r-- | src/server/UndoStack.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/server/UndoStack.cpp b/src/server/UndoStack.cpp index 7aea1ba5..82527d12 100644 --- a/src/server/UndoStack.cpp +++ b/src/server/UndoStack.cpp @@ -118,7 +118,7 @@ UndoStack::pop() } struct BlankIDs { - explicit BlankIDs(char c='b') : c(c) {} + explicit BlankIDs(char prefix='b') : c(prefix) {} SerdNode get() { snprintf(buf, sizeof(buf), "%c%u", c, n++); @@ -131,12 +131,16 @@ struct BlankIDs { }; struct ListContext { - explicit ListContext(BlankIDs& ids, unsigned flags, const SerdNode* s, const SerdNode* p) - : ids(ids) - , s(*s) - , p(*p) - , flags(flags | SERD_LIST_O_BEGIN) - {} + explicit ListContext(BlankIDs& blank_ids, + unsigned statement_flags, + const SerdNode* subject, + const SerdNode* predicate) + : ids(blank_ids) + , s(*subject) + , p(*predicate) + , flags(statement_flags | SERD_LIST_O_BEGIN) + { + } SerdNode start_node(SerdWriter* writer) { const SerdNode node = ids.get(); |