File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ namespace ursine
36
36
m_signature = rhs.m_signature ;
37
37
}
38
38
39
- Constructor::Constructor (const Constructor &&rhs)
40
- : Invokable( kConstructorName )
39
+ Constructor::Constructor (const Constructor &&rhs) noexcept
40
+ : Invokable( kConstructorName )
41
41
, m_isDynamic( rhs.m_isDynamic )
42
42
, m_classType( rhs.m_classType )
43
43
, m_invoker( std::move( rhs.m_invoker ) )
@@ -92,7 +92,7 @@ namespace ursine
92
92
return m_isDynamic;
93
93
}
94
94
95
- Variant Constructor::InvokeVariadic (ArgumentList &arguments) const
95
+ Variant Constructor::InvokeVariadic (const ArgumentList &arguments) const
96
96
{
97
97
UAssert ( IsValid ( ), " Invalid constructor invoked." );
98
98
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ namespace ursine
29
29
public:
30
30
Constructor (void );
31
31
Constructor (const Constructor &rhs);
32
- Constructor (const Constructor &&rhs);
32
+ Constructor (const Constructor &&rhs) noexcept ;
33
33
34
34
Constructor (
35
35
Type classType,
@@ -47,7 +47,7 @@ namespace ursine
47
47
bool IsValid (void ) const ;
48
48
bool IsDynamic (void ) const ;
49
49
50
- Variant InvokeVariadic (ArgumentList &arguments) const ;
50
+ Variant InvokeVariadic (const ArgumentList &arguments) const ;
51
51
52
52
template <typename ...Args>
53
53
Variant Invoke (Args &&...args) const ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ namespace ursine
21
21
22
22
auto &constructor = type.GetConstructor ( signature );
23
23
24
- return constructor.Invoke ( arguments );
24
+ return constructor.InvokeVariadic ( arguments );
25
25
}
26
26
27
27
Variant TypeCreator::CreateDynamicVariadic (const Type &type, const ArgumentList &arguments)
@@ -33,7 +33,7 @@ namespace ursine
33
33
34
34
auto &constructor = type.GetDynamicConstructor ( signature );
35
35
36
- return constructor.Invoke ( arguments );
36
+ return constructor.InvokeVariadic ( arguments );
37
37
}
38
38
}
39
39
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ namespace ursine
40
40
* constructor signature. NOTE: it is much faster to cache
41
41
* the appropriate constructor first, then call
42
42
* Invoke( ) manually.
43
- * @param arguments List of arguments to forward to the
43
+ * @param args List of arguments to forward to the
44
44
* type constructor.
45
45
* @return Variant representing the newly created type instance.
46
46
*/
@@ -49,7 +49,7 @@ namespace ursine
49
49
50
50
/* * @brief Same as Create( ), except it uses the dynamic
51
51
* constructor and returns the class pointer type.
52
- * @param arguments List of arguments to forward to the
52
+ * @param args List of arguments to forward to the
53
53
* type constructor.
54
54
* @return Variant representing a pointer to the newly
55
55
* created type instance. NOTE: client is responsible for
You can’t perform that action at this time.
0 commit comments