diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 11:28:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 12:58:51 +0000 |
commit | ec9e5a0f5d69fbd9abd551c2459c4f482dddc5b5 (patch) | |
tree | 031345900ea9e5d6ed4a2ae52481de1015b85b4d /comphelper | |
parent | 697ec96e6118af3ceec953f6bec74dab526e548a (diff) |
coverity#1187647 try and help coverity out here
Change-Id: I94a0dad8113b8b6ac06ddf5456ff8c35d7c64fc1
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/docpasswordrequest.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/comphelper/source/misc/docpasswordrequest.cxx b/comphelper/source/misc/docpasswordrequest.cxx index a2d2119c971a..3f0864b2fbcc 100644 --- a/comphelper/source/misc/docpasswordrequest.cxx +++ b/comphelper/source/misc/docpasswordrequest.cxx @@ -90,7 +90,6 @@ private: SimplePasswordRequest::SimplePasswordRequest( PasswordRequestMode eMode ) - : mpPassword( NULL ) { PasswordRequest aRequest( OUString(), Reference< XInterface >(), InteractionClassification_QUERY, eMode ); @@ -98,7 +97,8 @@ SimplePasswordRequest::SimplePasswordRequest( PasswordRequestMode eMode ) maContinuations.realloc( 2 ); maContinuations[ 0 ].set( new AbortContinuation ); - maContinuations[ 1 ].set( mpPassword = new PasswordContinuation ); + mpPassword = new PasswordContinuation; + maContinuations[ 1 ].set( mpPassword ); } SimplePasswordRequest::~SimplePasswordRequest() @@ -129,7 +129,6 @@ Sequence< Reference< XInteractionContinuation > > SAL_CALL SimplePasswordRequest DocPasswordRequest::DocPasswordRequest( DocPasswordRequestType eType, PasswordRequestMode eMode, const OUString& rDocumentName, bool bPasswordToModify ) - : mpPassword( NULL ) { switch( eType ) { @@ -153,7 +152,8 @@ DocPasswordRequest::DocPasswordRequest( DocPasswordRequestType eType, maContinuations.realloc( 2 ); maContinuations[ 0 ].set( new AbortContinuation ); - maContinuations[ 1 ].set( mpPassword = new PasswordContinuation ); + mpPassword = new PasswordContinuation; + maContinuations[ 1 ].set( mpPassword ); } DocPasswordRequest::~DocPasswordRequest() |