summaryrefslogtreecommitdiff
path: root/Lib/lua
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/lua
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/lua')
-rw-r--r--Lib/lua/std_map.i2
-rw-r--r--Lib/lua/std_pair.i2
-rw-r--r--Lib/lua/std_string.i2
-rw-r--r--Lib/lua/std_vector.i2
4 files changed, 3 insertions, 5 deletions
diff --git a/Lib/lua/std_map.i b/Lib/lua/std_map.i
index 8a203e133..3077d157f 100644
--- a/Lib/lua/std_map.i
+++ b/Lib/lua/std_map.i
@@ -28,7 +28,7 @@ namespace std {
typedef K key_type;
typedef T mapped_type;
map();
- map(const map< K, T, C> &);
+ map(const map< K, T, C >& other);
unsigned int size() const;
bool empty() const;
diff --git a/Lib/lua/std_pair.i b/Lib/lua/std_pair.i
index 06728533b..eee365c82 100644
--- a/Lib/lua/std_pair.i
+++ b/Lib/lua/std_pair.i
@@ -37,6 +37,6 @@ namespace std {
};
template <class T, class U >
- pair<T,U> make_pair(const T&,const U&);
+ pair<T,U> make_pair(const T& t,const U& u);
}
diff --git a/Lib/lua/std_string.i b/Lib/lua/std_string.i
index e9f326b52..b95a8a4a2 100644
--- a/Lib/lua/std_string.i
+++ b/Lib/lua/std_string.i
@@ -109,7 +109,6 @@ as this is overloaded by the const char* version
public:
string();
string(const char*);
- //string(const string&);
unsigned int size() const;
unsigned int length() const;
bool empty() const;
@@ -119,7 +118,6 @@ as this is overloaded by the const char* version
// assign does not return a copy of this object
// (no point in a scripting language)
void assign(const char*);
- //void assign(const string&);
// no support for all the other features
// it's probably better to do it in lua
};
diff --git a/Lib/lua/std_vector.i b/Lib/lua/std_vector.i
index a4ea978db..3199a9dab 100644
--- a/Lib/lua/std_vector.i
+++ b/Lib/lua/std_vector.i
@@ -27,7 +27,7 @@ namespace std {
public:
vector();
vector(unsigned int);
- vector(const vector&);
+ vector(const vector& other);
vector(unsigned int,T);
unsigned int size() const;
unsigned int max_size() const;