From 8123b3ff3aee3a161723c06a0d88141a0e8b7841 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 2 Aug 2020 12:19:54 +0200 Subject: Fix shadow warnings --- include/ingen/AtomForge.hpp | 12 ++++++------ include/ingen/Forge.hpp | 4 ++-- include/ingen/URIs.hpp | 4 ++-- include/ingen/client/PluginModel.hpp | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'include') diff --git a/include/ingen/AtomForge.hpp b/include/ingen/AtomForge.hpp index b1cec69d..24e42186 100644 --- a/include/ingen/AtomForge.hpp +++ b/include/ingen/AtomForge.hpp @@ -73,7 +73,7 @@ private: using SratomPtr = UPtr; /// Append some data and return a reference to its start - intptr_t append(const void* buf, uint32_t len) { + intptr_t append(const void* data, uint32_t len) { // Record offset of the start of this write (+1 to avoid null) const intptr_t ref = _size + 1; @@ -85,7 +85,7 @@ private: } // Append new data - memcpy(reinterpret_cast(_buf.get()) + _size, buf, len); + memcpy(reinterpret_cast(_buf.get()) + _size, data, len); _size += len; return ref; } @@ -103,13 +103,13 @@ private: } static LV2_Atom_Forge_Ref - c_append(void* handle, const void* buf, uint32_t len) { - return static_cast(handle)->append(buf, len); + c_append(void* self, const void* data, uint32_t len) { + return static_cast(self)->append(data, len); } static LV2_Atom* - c_deref(void* handle, LV2_Atom_Forge_Ref ref) { - return static_cast(handle)->deref(ref); + c_deref(void* self, LV2_Atom_Forge_Ref ref) { + return static_cast(self)->deref(ref); } size_t _size; ///< Current atom size diff --git a/include/ingen/Forge.hpp b/include/ingen/Forge.hpp index 10b4e622..54f5d3a9 100644 --- a/include/ingen/Forge.hpp +++ b/include/ingen/Forge.hpp @@ -55,8 +55,8 @@ public: Atom make_urid(const ingen::URI& u); - static Atom alloc(uint32_t size, uint32_t type, const void* val) { - return Atom(size, type, val); + static Atom alloc(uint32_t s, uint32_t t, const void* v) { + return Atom(s, t, v); } Atom alloc(const char* v) { diff --git a/include/ingen/URIs.hpp b/include/ingen/URIs.hpp index 9d4b2818..baa376e9 100644 --- a/include/ingen/URIs.hpp +++ b/include/ingen/URIs.hpp @@ -39,10 +39,10 @@ class URIMap; */ class INGEN_API URIs : public Raul::Noncopyable { public: - URIs(ingen::Forge& forge, URIMap* map, LilvWorld* lworld); + URIs(ingen::Forge& ingen_forge, URIMap* map, LilvWorld* lworld); struct Quark : public URI { - Quark(ingen::Forge& forge, + Quark(ingen::Forge& ingen_forge, URIMap* map, LilvWorld* lworld, const char* str); diff --git a/include/ingen/client/PluginModel.hpp b/include/ingen/client/PluginModel.hpp index dbefaf95..8afcd38f 100644 --- a/include/ingen/client/PluginModel.hpp +++ b/include/ingen/client/PluginModel.hpp @@ -65,10 +65,10 @@ public: Raul::Symbol default_block_symbol() const; std::string human_name() const; - std::string port_human_name(uint32_t i) const; + std::string port_human_name(uint32_t index) const; using ScalePoints = std::map; - ScalePoints port_scale_points(uint32_t i) const; + ScalePoints port_scale_points(uint32_t index) const; using Presets = std::map; const Presets& presets() const { return _presets; } -- cgit v1.2.1