PyObject *CachedObjectMgr::MakeCacheHint(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 ); PyObject * obj = MakeCacheHint(str); PyDecRef(obj); return obj; }
PyObject *CachedObjectMgr::MakeCacheHint(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(MakeCacheHint(&str)); }