aboutsummaryrefslogtreecommitdiff
path: root/Lib/java
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2019-02-12 22:04:58 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2019-02-13 22:45:47 +0000
commit6d0c495fd042a313e0a8d6a9d36209b92b9bf42b (patch)
tree6863db5822ec6940c0dfc3064c6b2a3aa54185da /Lib/java
parent8c207dd3a9eae0435f219b4e70f02a503cd66b49 (diff)
downloadswig-6d0c495fd042a313e0a8d6a9d36209b92b9bf42b.tar.gz
Add missing parameter names in STL container wrappers
Mostly in STL copy constructors. Best to have parameter names as they make their way into the wrappers in some target languages.
Diffstat (limited to 'Lib/java')
-rw-r--r--Lib/java/std_map.i4
-rw-r--r--Lib/java/std_set.i2
-rw-r--r--Lib/java/std_unordered_map.i4
-rw-r--r--Lib/java/std_unordered_set.i2
4 files changed, 6 insertions, 6 deletions
diff --git a/Lib/java/std_map.i b/Lib/java/std_map.i
index e44a7e97a..0b0041fb8 100644
--- a/Lib/java/std_map.i
+++ b/Lib/java/std_map.i
@@ -154,7 +154,7 @@ template<class KeyType, class MappedType, class Comparator = std::less<KeyType>
typedef const value_type& const_reference;
map();
- map(const map<KeyType, MappedType, Comparator >&);
+ map(const map<KeyType, MappedType, Comparator >& other);
struct iterator {
%typemap(javaclassmodifiers) iterator "protected class"
@@ -185,7 +185,7 @@ template<class KeyType, class MappedType, class Comparator = std::less<KeyType>
%rename(isEmpty) empty;
bool empty() const;
void clear();
- iterator find(const KeyType&);
+ iterator find(const KeyType& key);
iterator begin();
iterator end();
%extend {
diff --git a/Lib/java/std_set.i b/Lib/java/std_set.i
index 018d056cc..4453d90bd 100644
--- a/Lib/java/std_set.i
+++ b/Lib/java/std_set.i
@@ -160,7 +160,7 @@ class set {
typedef const value_type& const_reference;
set();
- set(const set<T>&);
+ set(const set<T>& other);
%rename(isEmpty) empty;
bool empty() const;
diff --git a/Lib/java/std_unordered_map.i b/Lib/java/std_unordered_map.i
index 86992479e..eecdf0bc4 100644
--- a/Lib/java/std_unordered_map.i
+++ b/Lib/java/std_unordered_map.i
@@ -153,7 +153,7 @@ template<class KeyType, class MappedType > class unordered_map {
typedef const value_type& const_reference;
unordered_map();
- unordered_map(const unordered_map<KeyType, MappedType >&);
+ unordered_map(const unordered_map<KeyType, MappedType >& other);
struct iterator {
%typemap(javaclassmodifiers) iterator "protected class"
@@ -184,7 +184,7 @@ template<class KeyType, class MappedType > class unordered_map {
%rename(isEmpty) empty;
bool empty() const;
void clear();
- iterator find(const KeyType&);
+ iterator find(const KeyType& key);
iterator begin();
iterator end();
%extend {
diff --git a/Lib/java/std_unordered_set.i b/Lib/java/std_unordered_set.i
index 3cbdca639..06c7a1123 100644
--- a/Lib/java/std_unordered_set.i
+++ b/Lib/java/std_unordered_set.i
@@ -160,7 +160,7 @@ class unordered_set {
typedef const value_type& const_reference;
unordered_set();
- unordered_set(const unordered_set<T>&);
+ unordered_set(const unordered_set<T>& other);
%rename(isEmpty) empty;
bool empty() const;