Replace all uses of auto_ptr with unique_ptr
Bug #1210677 reported by
Paul J. Lucas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
In Progress
|
Medium
|
Chris Hillery |
Bug Description
auto_ptr is deprecated in C++ in favor of unique_ptr. All uses of auto_ptr should therefore be replaced by unique_ptr. In most cases, this will be a simple global search & replace since (I believe) unique_ptr is upward API compatible with auto_ptr.
Although it may not matter for this change, note that unique_ptr, unlike auto_ptr, correctly works with C++ array types, i.e., unique_ptr<T[]>.
Assigned to Chris since auto_ptr is chiefly used in the resource stuff. (It's also used in other places, but, again, it should be a simple search & replace.)
Related branches
lp://staging/~zorba-coders/zorba/bug-1210677-autoptr
- Paul J. Lucas: Approve
- Chris Hillery: Approve
-
Diff: 4274 lines (+431/-711)104 files modifiedNOTICE.txt (+0/-32)
NOTICE.xml (+0/-30)
bin/debugger/command.h (+2/-3)
bin/debugger/main.cpp (+4/-3)
bin/zorbacmd.cpp (+5/-5)
doc/cxx/examples/context.cpp (+5/-5)
doc/cxx/examples/execution_plans.cpp (+2/-1)
doc/cxx/examples/external_functions.cpp (+6/-5)
doc/cxx/examples/module_import_check.cpp (+1/-1)
doc/cxx/examples/uri_resolvers.cpp (+2/-1)
include/zorba/dynamic_context.h (+0/-1)
include/zorba/zorba_string.h (+0/-1)
modules/http-client/json/http-client.xq.src/http_client.cpp (+6/-5)
modules/http-client/json/http-client.xq.src/http_response_parser.cpp (+2/-1)
modules/http-client/json/http-client.xq.src/request_parser.cpp (+2/-1)
modules/org/expath/ns/file.xq.src/file.cpp (+0/-1)
modules/zorba-query/zorba-query.xq.src/zorba-query.cpp (+8/-6)
src/api/auditimpl.cpp (+2/-3)
src/api/uri_resolver_wrappers.cpp (+3/-2)
src/api/xqueryimpl.cpp (+3/-2)
src/capi/cdynamic_context.cpp (+9/-7)
src/capi/cexpression.cpp (+3/-3)
src/capi/cexternal_function.cpp (+2/-1)
src/capi/cimplementation.cpp (+19/-21)
src/capi/cimplementation.h (+2/-1)
src/capi/csequence.cpp (+2/-1)
src/capi/cstatic_context.cpp (+4/-2)
src/capi/zorbac.cpp (+2/-1)
src/compiler/api/compiler_api.cpp (+2/-3)
src/compiler/api/compiler_api.h (+2/-2)
src/compiler/api/compiler_api_impl.h (+1/-1)
src/compiler/codegen/plan_visitor.cpp (+8/-7)
src/compiler/dewey/dewey.cpp (+2/-2)
src/compiler/expression/fo_expr.cpp (+3/-1)
src/compiler/parser/jsoniq_parser.cpp (+3/-5)
src/compiler/parser/parser.y (+3/-3)
src/compiler/parser/parser_y_includes.h (+1/-0)
src/compiler/parser/xquery_parser.cpp (+3/-6)
src/compiler/rewriter/rules/flwor_rules.cpp (+1/-1)
src/compiler/translator/translator.cpp (+11/-10)
src/context/default_uri_mappers.h (+0/-1)
src/context/default_url_resolvers.cpp (+2/-1)
src/context/default_url_resolvers.h (+0/-1)
src/context/dynamic_loader.cpp (+3/-2)
src/context/static_context.cpp (+21/-12)
src/context/static_context.h (+6/-7)
src/context/uri_resolver.h (+0/-2)
src/debugger/debugger_communicator.cpp (+2/-1)
src/debugger/debugger_event_listener.cpp (+2/-3)
src/debugger/debugger_runtime.cpp (+0/-1)
src/functions/library.cpp (+0/-1)
src/precompiled/stdafx.h (+0/-1)
src/runtime/collections/collections_impl.cpp (+20/-19)
src/runtime/context/context_impl.cpp (+5/-6)
src/runtime/core/arithmetic_impl.cpp (+24/-22)
src/runtime/core/flwor_iterator.cpp (+2/-1)
src/runtime/core/gflwor/groupby_iterator.cpp (+3/-1)
src/runtime/core/gflwor/tuplestream_iterator.cpp (+3/-1)
src/runtime/durations_dates_times/DurationsDatesTimesImpl.cpp (+5/-4)
src/runtime/eval/eval.h (+4/-2)
src/runtime/fetch/fetch_impl.cpp (+7/-6)
src/runtime/fnput/fnput_impl.cpp (+2/-1)
src/runtime/full_text/apply.cpp (+2/-1)
src/runtime/full_text/ft_module_impl.cpp (+3/-2)
src/runtime/full_text/ft_stop_words_set.cpp (+2/-1)
src/runtime/full_text/ftcontains_visitor.cpp (+0/-1)
src/runtime/hof/fn_hof_functions_impl.cpp (+2/-1)
src/runtime/hof/function_item.cpp (+1/-1)
src/runtime/hof/function_item.h (+3/-1)
src/runtime/hof/function_item_iter.cpp (+2/-2)
src/runtime/json/jsoniq_functions_impl.cpp (+2/-1)
src/runtime/parsing_and_serializing/parsing_and_serializing_impl.cpp (+6/-4)
src/runtime/sequences/SequencesImpl.h (+0/-1)
src/runtime/sequences/pregenerated/sequences.h (+2/-1)
src/runtime/sequences/sequences_impl.cpp (+5/-5)
src/runtime/spec/sequences/sequences.xml (+2/-1)
src/runtime/store/documents_impl.cpp (+3/-1)
src/runtime/store/maps_impl.cpp (+7/-5)
src/runtime/update/update.cpp (+5/-4)
src/runtime/util/plan_wrapper_holder.h (+2/-2)
src/runtime/xqdoc/xqdoc_impl.cpp (+0/-1)
src/store/naive/node_items.cpp (+2/-2)
src/store/naive/node_updates.cpp (+2/-1)
src/store/naive/pul_primitives.cpp (+2/-1)
src/store/naive/simple_item_factory.cpp (+3/-2)
src/store/naive/store.cpp (+2/-2)
src/system/globalenv.cpp (+1/-1)
src/system/globalenv.h (+1/-1)
src/system/properties.h (+2/-2)
src/types/casting.cpp (+13/-12)
src/types/schema/XercesParseUtils.cpp (+39/-38)
src/types/schema/schema.cpp (+4/-3)
src/util/auto_vector.h (+0/-266)
src/util/singleton.h (+2/-1)
src/util/zorba_regex_engine.cpp (+6/-5)
src/zorbatypes/collation_manager.cpp (+1/-2)
src/zorbatypes/datetime/datetimetype.cpp (+31/-31)
src/zorbatypes/datetime/duration.cpp (+2/-3)
test/api/userdefined_uri_resolution.cpp (+0/-1)
test/apitest.cpp (+4/-4)
test/driver/testdriver.cpp (+6/-5)
test/driver/testdriver_mt.cpp (+6/-5)
test/driver/updtestdriver.cpp (+2/-1)
test/rbkt/modules/link.xq.src/link.cpp (+4/-3)
Changed in zorba: | |
status: | New → In Progress |
To post a comment you must log in.
Marking this for 3.0 since (I believe?) at least some of the auto_ptr<> uses are in public APIs.