diff --git a/src/sexp-input.cpp b/src/sexp-input.cpp index e6e31f0..c220c64 100644 --- a/src/sexp-input.cpp +++ b/src/sexp-input.cpp @@ -204,7 +204,7 @@ std::shared_ptr sexp_input_stream_t::scan_to_eof(void) get_char(); } s->set_string(ss); - _return_unique_ptr_(s); + return p; } /* @@ -469,7 +469,7 @@ std::shared_ptr sexp_input_stream_t::scan_string(void) { std::shared_ptr s(new sexp_string_t()); s->parse(this); - _return_unique_ptr_(s); + return s; } /* @@ -480,7 +480,7 @@ std::shared_ptr sexp_input_stream_t::scan_list(void) { std::shared_ptr list(new sexp_list_t()); list->parse(this); - _return_unique_ptr_(list); + return list; } /* @@ -501,7 +501,7 @@ std::shared_ptr sexp_input_stream_t::scan_object(void) else object = scan_string(); } - _return_unique_ptr_(object); + return object; } } // namespace sexp \ No newline at end of file