• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

D wrapper around (some) of the pixiv web API


Commit MetaInfo

修订版8ecf2fef46902817bfe693cc00b96753531429d1 (tree)
时间2023-12-10 14:31:10
作者supercell <stigma@disr...>
Commitersupercell

Log Message

Replace 'in' parameter with 'const'

Will swap over for 'in' when the preview period is over (or the DFL
figures out how they want to implement "editions")

更改概述

差异

--- a/source/pixivd/types/illustration.d
+++ b/source/pixivd/types/illustration.d
@@ -36,7 +36,7 @@ class Illustration
3636 /**
3737 * Create an Illustration from a JSONValue.
3838 */
39- static Illustration fromJSON(in ref JSONValue json)
39+ static Illustration fromJSON(const ref JSONValue json)
4040 {
4141 if (mixin(mixCheckJsonError!("json"))) {
4242 throw new PixivJSONException(json["message"].str);
--- a/source/pixivd/types/thumbnail.d
+++ b/source/pixivd/types/thumbnail.d
@@ -32,7 +32,7 @@ class Thumbnail
3232 string[string] urls;
3333 string profileImageUrl;
3434
35- static Thumbnail fromJSON(in ref JSONValue json)
35+ static Thumbnail fromJSON(const ref JSONValue json)
3636 {
3737 auto thumb = new Thumbnail();
3838
--- a/source/pixivd/types/ugoira.d
+++ b/source/pixivd/types/ugoira.d
@@ -21,7 +21,7 @@ private:
2121 Frame[] frames;
2222
2323 public:
24- static Ugoira fromJSON(in ref JSONValue json) {
24+ static Ugoira fromJSON(const ref JSONValue json) {
2525
2626 if (mixin(mixCheckJsonError!("json"))) {
2727 throw new PixivJSONException(json["message"].str);
--- a/source/pixivd/types/user.d
+++ b/source/pixivd/types/user.d
@@ -19,7 +19,7 @@ public:
1919 string userId;
2020 string userName;
2121
22- static User fromJSON(in ref JSONValue json)
22+ static User fromJSON(const ref JSONValue json)
2323 {
2424 auto user = new User();
2525
@@ -44,7 +44,7 @@ class FullUser : User
4444 {
4545 public string profileImageUrlBig;
4646
47- static FullUser fromJSON(in ref JSONValue json)
47+ static FullUser fromJSON(const ref JSONValue json)
4848 {
4949 auto user = new FullUser();
5050
@@ -92,7 +92,7 @@ public:
9292 // Illustration[](?) pickup;
9393 // ? request;
9494
95- static UserBrief fromJSON(in ref JSONValue json)
95+ static UserBrief fromJSON(const ref JSONValue json)
9696 {
9797 auto ub = new UserBrief();
9898