Exemplo n.º 1
0
bool CachedObjectMgr::HaveCached(const std::string &objectID) const
{
    //this is very sub-optimal, but it keeps things more consistent (in case StringCollapseVisitor ever gets more complicated)
    PyString *str = new PyString( objectID );
    bool ret = HaveCached(str);
    PyDecRef(str);
    return ret;
}
Exemplo n.º 2
0
bool CachedObjectMgr::HaveCached(const std::string &objectID) const {
    //this is very sub-optimal, but it keeps things more consistent (in case StringCollapseVisitor ever gets more complicated)
    PyString str( objectID );
    return(HaveCached(&str));
}