Move WeakCache to components/misc

pull/541/head
Andrei Kortunov 6 years ago
parent 35abf7367c
commit 43c7438e8e

@ -8,9 +8,9 @@
#include <QObject>
#include <QModelIndex>
#include <components/cache/weakcache.hpp>
#include <components/esm/loadarmo.hpp>
#include <components/esm/loadbody.hpp>
#include <components/misc/weakcache.hpp>
#include "refidcollection.hpp"
#include "idcollection.hpp"
@ -163,8 +163,8 @@ namespace CSMWorld
IdCollection<ESM::Race>& mRaces;
IdCollection<ESM::BodyPart>& mBodyParts;
cache::WeakCache<std::string, ActorData> mCachedActors; // Key: referenceable id
cache::WeakCache<std::string, RaceData> mCachedRaces; // Key: race id
Misc::WeakCache<std::string, ActorData> mCachedActors; // Key: referenceable id
Misc::WeakCache<std::string, RaceData> mCachedRaces; // Key: race id
StringSet mDirtyActors; // Actors that need updating
StringSet mDirtyRaces; // Races that need updating

@ -86,7 +86,7 @@ add_component_dir (esmterrain
)
add_component_dir (misc
constants utf8stream stringops resourcehelpers rng messageformatparser
constants utf8stream stringops resourcehelpers rng messageformatparser weakcache
)
add_component_dir (debug
@ -150,10 +150,6 @@ add_component_dir (fallback
fallback validate
)
add_component_dir(cache
weakcache
)
if(NOT WIN32 AND NOT ANDROID)
add_component_dir (crashcatcher
crashcatcher

@ -5,7 +5,7 @@
#include <unordered_map>
#include <vector>
namespace cache
namespace Misc
{
/// \class WeakCache
/// Provides a container to weakly store pointers to shared data.
Loading…
Cancel
Save