Fix #63: don't use reference arguments in openFileInPackage

This commit is contained in:
Twan van Laarhoven
2020-05-27 22:16:48 +02:00
parent 279fdb0378
commit c9c708dfbe
7 changed files with 17 additions and 21 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ unique_ptr<wxInputStream> Package::openIn(const String& file) {
if (!file.empty() && file.GetChar(0) == _('/')) {
// absolute path, open file from another package
Packaged* p = dynamic_cast<Packaged*>(this);
return package_manager.openFileFromPackage(p, file);
return package_manager.openFileFromPackage(p, file).first;
}
FileInfos::iterator it = files.find(normalize_internal_filename(file));
if (it == files.end()) {