Use std[::tr1]::shared_ptr instead of local RefCntr by default

This commit is contained in:
Jean-Francois Dockes
2015-08-09 13:54:24 +02:00
parent 83939e45ab
commit 4d1f679eac
61 changed files with 313 additions and 288 deletions
+4 -2
View File
@@ -16,9 +16,11 @@
*/
#ifndef TEST_SUBTREELIST
#include "autoconfig.h"
#include MEMORY_INCLUDE
#include "cstr.h"
#include "refcntr.h"
#include "rcldb.h"
#include "searchdata.h"
#include "rclquery.h"
@@ -37,7 +39,7 @@ bool subtreelist(RclConfig *config, const string& top,
}
Rcl::SearchData *sd = new Rcl::SearchData(Rcl::SCLT_OR, cstr_null);
RefCntr<Rcl::SearchData> rq(sd);
STD_SHARED_PTR<Rcl::SearchData> rq(sd);
sd->addClause(new Rcl::SearchDataClausePath(top, false));