Skip to content

Commit 89b7340

Browse files
Change typo: fixes #12
1 parent 8288834 commit 89b7340

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Source/Runtime/Constructor.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ namespace ursine
3636
m_signature = rhs.m_signature;
3737
}
3838

39-
Constructor::Constructor(const Constructor &&rhs)
40-
: Invokable( kConstructorName )
39+
Constructor::Constructor(const Constructor &&rhs) noexcept
40+
: Invokable( kConstructorName )
4141
, m_isDynamic( rhs.m_isDynamic )
4242
, m_classType( rhs.m_classType )
4343
, m_invoker( std::move( rhs.m_invoker ) )
@@ -92,7 +92,7 @@ namespace ursine
9292
return m_isDynamic;
9393
}
9494

95-
Variant Constructor::InvokeVariadic(ArgumentList &arguments) const
95+
Variant Constructor::InvokeVariadic(const ArgumentList &arguments) const
9696
{
9797
UAssert( IsValid( ), "Invalid constructor invoked." );
9898

Source/Runtime/Constructor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace ursine
2929
public:
3030
Constructor(void);
3131
Constructor(const Constructor &rhs);
32-
Constructor(const Constructor &&rhs);
32+
Constructor(const Constructor &&rhs) noexcept;
3333

3434
Constructor(
3535
Type classType,
@@ -47,7 +47,7 @@ namespace ursine
4747
bool IsValid(void) const;
4848
bool IsDynamic(void) const;
4949

50-
Variant InvokeVariadic(ArgumentList &arguments) const;
50+
Variant InvokeVariadic(const ArgumentList &arguments) const;
5151

5252
template<typename ...Args>
5353
Variant Invoke(Args &&...args) const;

Source/Runtime/TypeCreator.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace ursine
2121

2222
auto &constructor = type.GetConstructor( signature );
2323

24-
return constructor.Invoke( arguments );
24+
return constructor.InvokeVariadic( arguments );
2525
}
2626

2727
Variant TypeCreator::CreateDynamicVariadic(const Type &type, const ArgumentList &arguments)
@@ -33,7 +33,7 @@ namespace ursine
3333

3434
auto &constructor = type.GetDynamicConstructor( signature );
3535

36-
return constructor.Invoke( arguments );
36+
return constructor.InvokeVariadic( arguments );
3737
}
3838
}
3939
}

Source/Runtime/TypeCreator.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace ursine
4040
* constructor signature. NOTE: it is much faster to cache
4141
* the appropriate constructor first, then call
4242
* Invoke( ) manually.
43-
* @param arguments List of arguments to forward to the
43+
* @param args List of arguments to forward to the
4444
* type constructor.
4545
* @return Variant representing the newly created type instance.
4646
*/
@@ -49,7 +49,7 @@ namespace ursine
4949

5050
/** @brief Same as Create( ), except it uses the dynamic
5151
* 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
5353
* type constructor.
5454
* @return Variant representing a pointer to the newly
5555
* created type instance. NOTE: client is responsible for

0 commit comments

Comments
 (0)