summaryrefslogtreecommitdiff
path: root/src/resources/loaders/xmlloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/loaders/xmlloader.cpp')
-rw-r--r--src/resources/loaders/xmlloader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/loaders/xmlloader.cpp b/src/resources/loaders/xmlloader.cpp
index 2374e44d1..2d06d8128 100644
--- a/src/resources/loaders/xmlloader.cpp
+++ b/src/resources/loaders/xmlloader.cpp
@@ -44,10 +44,9 @@ namespace
return nullptr;
const ResourceLoader *const
rl = static_cast<const ResourceLoader *>(v);
- Resource *const res = new XML::Document(rl->path,
+ return new XML::Document(rl->path,
rl->useResman,
rl->skipError);
- return res;
}
};