summaryrefslogtreecommitdiff
path: root/games/0ad/files/patch-source_tools_atlas_AtlasObject_AtlasObjectImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'games/0ad/files/patch-source_tools_atlas_AtlasObject_AtlasObjectImpl.cpp')
-rw-r--r--games/0ad/files/patch-source_tools_atlas_AtlasObject_AtlasObjectImpl.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/games/0ad/files/patch-source_tools_atlas_AtlasObject_AtlasObjectImpl.cpp b/games/0ad/files/patch-source_tools_atlas_AtlasObject_AtlasObjectImpl.cpp
deleted file mode 100644
index b67f4c71c6e6..000000000000
--- a/games/0ad/files/patch-source_tools_atlas_AtlasObject_AtlasObjectImpl.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
---- source/tools/atlas/AtlasObject/AtlasObjectImpl.cpp.orig 2016-11-23 14:09:58 UTC
-+++ source/tools/atlas/AtlasObject/AtlasObjectImpl.cpp
-@@ -164,7 +164,12 @@ void AtObj::add(const char* key, AtObj& data)
-
- void AtObj::add(const char* key, const wxString& value)
- {
-- add(key, value.wc_str());
-+ const AtNode* o = new AtNode(value.wc_str());
-+
-+ if (!p)
-+ p = new AtNode();
-+
-+ p = p->addChild(key, AtNode::Ptr(o));
- }
-
- void AtObj::add(const char* key, const wchar_t* value)
-@@ -187,7 +192,12 @@ void AtObj::set(const char* key, AtObj& data)
-
- void AtObj::set(const char* key, const wxString& value)
- {
-- set(key, value.wc_str());
-+ const AtNode* o = new AtNode(value.wc_str());
-+
-+ if (!p)
-+ p = new AtNode();
-+
-+ p = p->setChild(key, AtNode::Ptr(o));
- }
-
- void AtObj::set(const char* key, const wchar_t* value)