[gjs: 3/4] arg-cache: Mark few more constructors as constexpr
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 3/4] arg-cache: Mark few more constructors as constexpr
- Date: Sun, 3 Jul 2022 23:08:30 +0000 (UTC)
commit 6d83c2fdd2391bc9dbd3cbb5421e7810b575711b
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Thu Jun 2 04:16:03 2022 +0200
arg-cache: Mark few more constructors as constexpr
gi/arg-cache.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gi/arg-cache.cpp b/gi/arg-cache.cpp
index bcf97b289..d5125fd73 100644
--- a/gi/arg-cache.cpp
+++ b/gi/arg-cache.cpp
@@ -229,9 +229,10 @@ struct Array : BasicType {
};
struct BaseInfo {
- explicit BaseInfo(GIBaseInfo* info, const GjsAutoTakeOwnership& add_ref)
+ constexpr explicit BaseInfo(GIBaseInfo* info,
+ const GjsAutoTakeOwnership& add_ref)
: m_info(info, add_ref) {}
- explicit BaseInfo(GIBaseInfo* info) : m_info(info) {}
+ constexpr explicit BaseInfo(GIBaseInfo* info) : m_info(info) {}
GjsAutoBaseInfo m_info;
};
@@ -264,7 +265,7 @@ struct RegisteredInterface : BaseInfo {
};
struct Callback : Nullable, BaseInfo {
- explicit Callback(GIInterfaceInfo* info)
+ constexpr explicit Callback(GIInterfaceInfo* info)
: BaseInfo(info, GjsAutoTakeOwnership{}),
m_scope(GI_SCOPE_TYPE_INVALID) {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]