| … | … | @@ -10,6 +10,7 @@ |
| 10 | 10 | #include <cstdlib> |
| 11 | 11 | #include <opencog/atomspace/AtomSpace.h> |
| 12 | 12 | #include <opencog/persist/api/StorageNode.h> |
| 13 | #include <opencog/persist/storage/storage_types.h> |
| 13 | 14 | #include <opencog/persist/cog-simple/CogSimpleStorage.h> |
| 14 | 15 | #include <opencog/persist/cog-storage/CogStorage.h> |
| 15 | 16 | #include <opencog/persist/file/FileStorage.h> |
| … | … | @@ -123,7 +124,7 @@ bool as_open(Dictionary dict) |
| 123 | 124 | local->asp = external_atomspace; |
| 124 | 125 | if (external_storage) |
| 125 | 126 | { |
| 126 | | Handle hsn = local->asp->add_atom(external_storage); |
| 127 | Handle hsn = local->asp->add_atom(Handle(external_storage)); |
| 127 | 128 | local->stnp = StorageNodeCast(hsn); |
| 128 | 129 | if (nullptr == local->stnp) |
| 129 | 130 | { |