Skip to content

Commit

Permalink
Fix #769 with hack
Browse files Browse the repository at this point in the history
  • Loading branch information
gnunn1 committed Feb 17, 2017
1 parent 4df376a commit 03bcbaa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"debug": {
"debugVersions": ["GC"],
"dflags-dmd": ["-g"]
"dflags": ["-gc"]
},
"localize": {
"versions": ["Localize"]
Expand Down
29 changes: 25 additions & 4 deletions source/gx/terminix/bookmark/manager.d
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,13 @@ public:
}

override JSONValue serialize(FolderBookmark parent) {
JSONValue value = super.serialize(parent);
// LDC 1.0.0 breaks on super call to abstract class, see #769
JSONValue value = [NODE_BOOKMARK_TYPE : to!string(type())];
value[NODE_NAME] = name;
_parent = parent;

//JSONValue value = super.serialize(parent);

JSONValue[] jsonList = [];
foreach(item; list) {
jsonList ~= item.serialize(this);
Expand Down Expand Up @@ -266,7 +272,12 @@ public:
}

override JSONValue serialize(FolderBookmark parent) {
JSONValue value = super.serialize(parent);
// LDC 1.0.0 breaks on super call to abstract class, see #769
JSONValue value = [NODE_BOOKMARK_TYPE : to!string(type())];
value[NODE_NAME] = name;
_parent = parent;

//JSONValue value = super.serialize(parent);
value[NODE_PATH] = _path;
return value;
}
Expand Down Expand Up @@ -383,7 +394,12 @@ public:
}

override JSONValue serialize(FolderBookmark parent) {
JSONValue value = super.serialize(parent);
// LDC 1.0.0 breaks on super call to abstract class, see #769
JSONValue value = [NODE_BOOKMARK_TYPE : to!string(type())];
value[NODE_NAME] = name;
_parent = parent;

//JSONValue value = super.serialize(parent);
value[NODE_HOST] = _host;
value[NODE_PORT] = _port;
value[NODE_USER] = _user;
Expand Down Expand Up @@ -466,7 +482,12 @@ public:
}

override JSONValue serialize(FolderBookmark parent) {
JSONValue value = super.serialize(parent);
// LDC 1.0.0 breaks on super call to abstract class, see #769
JSONValue value = [NODE_BOOKMARK_TYPE : to!string(type())];
value[NODE_NAME] = name;
_parent = parent;

//JSONValue value = super.serialize(parent);
value[NODE_COMMAND] = _command;
return value;
}
Expand Down

0 comments on commit 03bcbaa

Please sign in to comment.