Skip to content

Commit

Permalink
libcore|PackageLoader: Use a hash for loaded packages
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 14, 2016
1 parent 4a6cf3a commit 617c5e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doomsday/sdk/libcore/include/de/filesys/packageloader.h
Expand Up @@ -63,7 +63,7 @@ class DENG2_PUBLIC PackageLoader
/// Errors during reactions to loading a package. @ingroup errors
DENG2_ERROR(PostLoadError);

typedef QMap<String, Package *> LoadedPackages;
typedef QHash<String, Package *> LoadedPackages;

/**
* Utility for dealing with space-separated lists of identifiers.
Expand Down
2 changes: 1 addition & 1 deletion doomsday/sdk/libcore/src/filesys/packageloader.cpp
Expand Up @@ -353,7 +353,7 @@ void PackageLoader::unloadAll()

while(!d->loaded.isEmpty())
{
unload(d->loaded.firstKey());
unload(d->loaded.begin().key());
}
}

Expand Down

0 comments on commit 617c5e4

Please sign in to comment.