Skip to content

Commit

Permalink
Fixing on different system than the testing system is great.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Nov 19, 2013
1 parent 98180b2 commit 777ab24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/vibe/data/json.d
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ struct Json {
{
m_type = Type.array;
m_array = v;
version (VibeJsonFieldNames) if (m_magic == 0x1337f00d) { foreach (idx, ref av; m_array) av.m_name = format("%s[%s]", m_name, idx); } else m_name = null;
version (VibeJsonFieldNames) { if (m_magic == 0x1337f00d) { foreach (idx, ref av; m_array) av.m_name = format("%s[%s]", m_name, idx); } else m_name = null; }
return v;
}
/// ditto
Json[string] opAssign(Json[string] v)
{
m_type = Type.object;
m_object = v;
version (VibeJsonFieldNames) if (m_magic == 0x1337f00d) { foreach (key, ref av; m_object) av.m_name = format("%s.%s", m_name, key); } else m_name = null;
version (VibeJsonFieldNames) { if (m_magic == 0x1337f00d) { foreach (key, ref av; m_object) av.m_name = format("%s.%s", m_name, key); } else m_name = null; }
return v;
}

Expand Down

0 comments on commit 777ab24

Please sign in to comment.