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.
This commit is contained in:
William S Fulton 2019-02-12 22:04:58 +00:00
commit 6d0c495fd0
49 changed files with 72 additions and 74 deletions

View file

@ -943,7 +943,7 @@ namespace swig
}
}
catch( const std::invalid_argument & )
catch(const std::invalid_argument &)
{
rb_raise( rb_eArgError, "%s",
Ruby_Format_TypeError( "",
@ -970,7 +970,7 @@ namespace swig
Sequence::value_type val = swig::as<Sequence::value_type>( elem );
$self->insert( start, val );
}
catch( const std::invalid_argument & )
catch(const std::invalid_argument &)
{
rb_raise( rb_eArgError, "%s",
Ruby_Format_TypeError( "",

View file

@ -69,7 +69,7 @@
*i = swig::as< Type >( r );
}
}
catch ( const std::invalid_argument& )
catch (const std::invalid_argument&)
{
rb_raise(rb_eTypeError,
"Yield block did not return a valid element for " "Container");

View file

@ -14,7 +14,7 @@
template <class T>
struct traits_from<std::deque<T> > {
static VALUE from(const std::deque<T> & vec) {
static VALUE from(const std::deque<T>& vec) {
return traits_from_stdseq<std::deque<T> >::from(vec);
}
};

View file

@ -14,7 +14,7 @@
template <class T>
struct traits_from<std::list<T> > {
static VALUE from(const std::list<T> & vec) {
static VALUE from(const std::list<T>& vec) {
return traits_from_stdseq<std::list<T> >::from(vec);
}
};

View file

@ -14,7 +14,7 @@
template <class T>
struct traits_from<std::queue<T> > {
static VALUE from(const std::queue<T> & vec) {
static VALUE from(const std::queue<T>& vec) {
return traits_from_stdseq<std::queue<T> >::from(vec);
}
};

View file

@ -14,7 +14,7 @@
template <class T>
struct traits_from<std::stack<T> > {
static VALUE from(const std::stack<T> & vec) {
static VALUE from(const std::stack<T>& vec) {
return traits_from_stdseq<std::stack<T> >::from(vec);
}
};