OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-generate commits / c8d7c8b

More API modernizations
c8d7c8b20e0442c334a7db13d5313502074794c1
by Linas Vepstas <linasvepstas@gmail.com> · 2023-01-02T19:29:44.000Z

Changed files (2) +3 -5

opencog/generate/Aggregate.cc +2 -4
……@@ -43,7 +43,6 @@ Aggregate::Aggregate(AtomSpace* as)
4343
4444Aggregate::~Aggregate()
4545{
46 if (_scratch) delete _scratch;
4746}
4847
4948/// Yuck. Should not allow re-use... XXX FIXME!?
……@@ -56,9 +55,8 @@ void Aggregate::clear(void)
5655 _frame.clear();
5756 _odo.clear();
5857
59 if (_scratch) delete _scratch;
60 _scratch = new AtomSpace(_as);
61 _cb->clear(_scratch);
58 _scratch = createAtomSpace(_as);
59 _cb->clear(_scratch.get());
6260}
6361
6462/// The nuclei are the nucleation points: points that must
opencog/generate/Aggregate.h +1 -1
……@@ -38,7 +38,7 @@ class Aggregate
3838{
3939private:
4040 AtomSpace* _as;
41 AtomSpace* _scratch;
41 AtomSpacePtr _scratch;
4242
4343 /// Decision-maker
4444 GenerateCallback* _cb;