[gjs/fix-msvc-gnome42: 81/81] gi/arg-cache.cpp: Fix building on Visual Studio
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/fix-msvc-gnome42: 81/81] gi/arg-cache.cpp: Fix building on Visual Studio
- Date: Thu, 21 Jul 2022 03:43:51 +0000 (UTC)
commit 3d71abace67bec12c656aaf9f8a6dfd34ff90e02
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Jul 20 11:21:12 2022 +0800
gi/arg-cache.cpp: Fix building on Visual Studio
Marking the constructor for `Callback` as constexpr caused trouble for Visual
Studio as the definition of `CallbackIn` rejected it as the SkipAll items
are not marked as constexpr, so make the constructor for `Callback` non-
constexpr to fix the build.
gi/arg-cache.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gi/arg-cache.cpp b/gi/arg-cache.cpp
index 590595a1c..6a7dc0b82 100644
--- a/gi/arg-cache.cpp
+++ b/gi/arg-cache.cpp
@@ -242,7 +242,7 @@ struct RegisteredInterface : BaseInfo {
};
struct Callback : Nullable, BaseInfo {
- constexpr explicit Callback(GIInterfaceInfo* info)
+ 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]