[gjs/gnome-42] arg-cache: Mark few more constructors as constexpr
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/gnome-42] arg-cache: Mark few more constructors as constexpr
- Date: Sun, 3 Jul 2022 23:11:17 +0000 (UTC)
commit d11b28318813a2ae46b530e8ad0a4977683d4078
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 f4c89b651..84f08bee2 100644
--- a/gi/arg-cache.cpp
+++ b/gi/arg-cache.cpp
@@ -226,9 +226,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;
};
@@ -261,7 +262,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]