diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-09-02 15:32:36 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-09-02 15:32:36 +0000 |
commit | a3b69a80211da745b8b5779345522ae84d4e4052 (patch) | |
tree | f2fea8aca8ef52be25eddb794676f4c764db17d4 /cpp/src/Ice/Outgoing.cpp | |
parent | Renamed Callback interface. (diff) | |
download | ice-a3b69a80211da745b8b5779345522ae84d4e4052.tar.bz2 ice-a3b69a80211da745b8b5779345522ae84d4e4052.tar.xz ice-a3b69a80211da745b8b5779345522ae84d4e4052.zip |
Use auto_ptr.reset
Diffstat (limited to 'cpp/src/Ice/Outgoing.cpp')
-rw-r--r-- | cpp/src/Ice/Outgoing.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/Ice/Outgoing.cpp b/cpp/src/Ice/Outgoing.cpp index bd98109ce16..038641be760 100644 --- a/cpp/src/Ice/Outgoing.cpp +++ b/cpp/src/Ice/Outgoing.cpp @@ -20,12 +20,12 @@ using namespace IceInternal; IceInternal::NonRepeatable::NonRepeatable(const NonRepeatable& ex) { - _ex = auto_ptr<LocalException>(dynamic_cast<LocalException*>(ex.get()->ice_clone())); + _ex.reset(dynamic_cast<LocalException*>(ex.get()->ice_clone())); } IceInternal::NonRepeatable::NonRepeatable(const ::Ice::LocalException& ex) { - _ex = auto_ptr<LocalException>(dynamic_cast<LocalException*>(ex.ice_clone())); + _ex.reset(dynamic_cast<LocalException*>(ex.ice_clone())); } const ::Ice::LocalException* @@ -383,7 +383,7 @@ IceInternal::Outgoing::finished(BasicStream& is) ex->id = ident; ex->facet = facet; ex->operation = operation; - _exception = auto_ptr<LocalException>(ex); + _exception.reset(ex); _state = StateLocalException; // The state must be set last, in case there is an exception. break; @@ -431,7 +431,7 @@ IceInternal::Outgoing::finished(BasicStream& is) } ex->unknown = unknown; - _exception = auto_ptr<LocalException>(ex); + _exception.reset(ex); _state = StateLocalException; // The state must be set last, in case there is an exception. break; @@ -439,7 +439,7 @@ IceInternal::Outgoing::finished(BasicStream& is) default: { - _exception = auto_ptr<LocalException>(new UnknownReplyStatusException(__FILE__, __LINE__)); + _exception.reset(new UnknownReplyStatusException(__FILE__, __LINE__)); _state = StateLocalException; break; } @@ -458,6 +458,6 @@ IceInternal::Outgoing::finished(const LocalException& ex) assert(_state <= StateInProgress); _state = StateLocalException; - _exception = auto_ptr<LocalException>(dynamic_cast<LocalException*>(ex.ice_clone())); + _exception.reset(dynamic_cast<LocalException*>(ex.ice_clone())); notify(); } |