diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-02 16:41:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-02 16:49:49 +0200 |
commit | 075d472a9d120431f0b8731e4dcfe3e8b4ded521 (patch) | |
tree | 90f565b0f3c4afdf3294d857969ef724e091a139 /forms | |
parent | 3e1bd6961d3317fe2bef4a34a41f5d1fc2a33008 (diff) |
Use std::auto_ptr::reset where applicable
(avoids warnings about std::auto_ptr ctor being deprecated)
Change-Id: I39d2d155c0bc62ca77a30c02428ea39102213f42
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/submission.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/forms/source/xforms/submission.cxx b/forms/source/xforms/submission.cxx index 873b6c10467f..1559bb8756a0 100644 --- a/forms/source/xforms/submission.cxx +++ b/forms/source/xforms/submission.cxx @@ -312,14 +312,11 @@ bool Submission::doSubmit( const Reference< XInteractionHandler >& xHandler ) // submit result; set encoding, etc. auto_ptr<CSubmission> xSubmission; if (aMethod.equalsIgnoreAsciiCase("PUT")) - xSubmission = auto_ptr<CSubmission>( - new CSubmissionPut( getAction(), aFragment)); + xSubmission.reset(new CSubmissionPut( getAction(), aFragment)); else if (aMethod.equalsIgnoreAsciiCase("post")) - xSubmission = auto_ptr<CSubmission>( - new CSubmissionPost( getAction(), aFragment)); + xSubmission.reset(new CSubmissionPost( getAction(), aFragment)); else if (aMethod.equalsIgnoreAsciiCase("get")) - xSubmission = auto_ptr<CSubmission>( - new CSubmissionGet( getAction(), aFragment)); + xSubmission.reset(new CSubmissionGet( getAction(), aFragment)); else { OSL_FAIL("Unsupported xforms submission method"); |