bool CachedObjectMgr::LoadCachedFromFile(const std::string &cacheDir, const std::string &objectID) { //this is sub-optimal, but it keeps things more consistent (in case StringCollapseVisitor ever gets more complicated) PyString *str = new PyString(objectID); bool ret = LoadCachedFromFile(cacheDir, str); PyDecRef(str); return ret; }
bool CachedObjectMgr::LoadCachedFromFile(const std::string &cacheDir, const std::string &objectID) { //this is sub-optimal, but it keeps things more consistent (in case StringCollapseVisitor ever gets more complicated) PyString str(objectID); return(LoadCachedFromFile(cacheDir, &str)); }