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:
parent
8c207dd3a9
commit
6d0c495fd0
49 changed files with 72 additions and 74 deletions
|
|
@ -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( "",
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue