@@ -40,11 +40,11 @@ namespace rtl::detail
4040 }
4141 if (m_target.isEmpty ()) {
4242 // if the target is empty.
43- return { error::EmptyRObject, RObject () };
43+ return { error::EmptyRObject, RObject{ } };
4444 }
4545 if (m_target.getTypeId () != m_method.getRecordTypeId ()) {
4646 // if the m_target's type-id & type-id of the 'class/struct' owner of the associated functor(m_method's) do not match.
47- return { error::TargetMismatch, RObject () };
47+ return { error::TargetMismatch, RObject{ } };
4848 }
4949 if constexpr (sizeof ...(_signature) == 0 ) {
5050 // executes when bind doesn't have any explicit signature types specified. (e.g. perfect-forwaring)
@@ -84,15 +84,15 @@ namespace rtl::detail
8484 {
8585 if (!pTarget.isConstCastSafe ()) {
8686 pError = error::ConstOverloadMissing;
87- return RObject () ;
87+ return RObject{ } ;
8888 }
8989 return containerNonConst::template forwardCall<_args...>(pError, pTarget, nonConstMethodIndex, std::forward<_args>(params)...);
9090 }
9191 else {
9292 pError = error::SignatureMismatch;
9393 }
9494 }
95- return RObject () ;
95+ return RObject{ } ;
9696 }
9797}
9898
@@ -120,11 +120,11 @@ namespace rtl::detail
120120 }
121121 if (m_target.isEmpty ()) {
122122 // if the target is empty.
123- return { error::EmptyRObject, RObject () };
123+ return { error::EmptyRObject, RObject{ } };
124124 }
125125 if (m_target.getTypeId () != m_method.getRecordTypeId ()) {
126126 // if the m_target's type-id & type-id of the 'class/struct' owner of the associated functor(m_method's) do not match.
127- return { error::TargetMismatch, RObject () };
127+ return { error::TargetMismatch, RObject{ } };
128128 }
129129 if constexpr (sizeof ...(_signature) == 0 ) {
130130 error err = error::None;
@@ -160,11 +160,11 @@ namespace rtl::detail
160160 if (index != rtl::index_none) {
161161 // So, const-overload is present and non-const overload is not registered or doesn't exists.
162162 pError = error::NonConstOverloadMissing;
163- return RObject () ;
163+ return RObject{ } ;
164164 }
165165 // else the signature might be wrong.
166166 pError = error::SignatureMismatch;
167- return RObject () ;
167+ return RObject{ } ;
168168 }
169169 }
170170}
0 commit comments