diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 11:25:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-27 12:58:50 +0000 |
commit | 697ec96e6118af3ceec953f6bec74dab526e548a (patch) | |
tree | b6e7ae6738cda58ab30a82201e64057ec4e36cde | |
parent | fd997b360f4b448d574c1efc5c8ad1c68f7dbdc2 (diff) |
coverity#1187646 unused mpAbort
Change-Id: I1fc3f0253c2af4779ba59b5b85ea7fc400226177
-rw-r--r-- | comphelper/source/misc/docpasswordrequest.cxx | 10 | ||||
-rw-r--r-- | include/comphelper/docpasswordrequest.hxx | 2 |
2 files changed, 4 insertions, 8 deletions
diff --git a/comphelper/source/misc/docpasswordrequest.cxx b/comphelper/source/misc/docpasswordrequest.cxx index 380b0824883e..a2d2119c971a 100644 --- a/comphelper/source/misc/docpasswordrequest.cxx +++ b/comphelper/source/misc/docpasswordrequest.cxx @@ -90,15 +90,14 @@ private: SimplePasswordRequest::SimplePasswordRequest( PasswordRequestMode eMode ) -: mpAbort( NULL ) -, mpPassword( NULL ) + : mpPassword( NULL ) { PasswordRequest aRequest( OUString(), Reference< XInterface >(), InteractionClassification_QUERY, eMode ); maRequest <<= aRequest; maContinuations.realloc( 2 ); - maContinuations[ 0 ].set( mpAbort = new AbortContinuation ); + maContinuations[ 0 ].set( new AbortContinuation ); maContinuations[ 1 ].set( mpPassword = new PasswordContinuation ); } @@ -130,8 +129,7 @@ Sequence< Reference< XInteractionContinuation > > SAL_CALL SimplePasswordRequest DocPasswordRequest::DocPasswordRequest( DocPasswordRequestType eType, PasswordRequestMode eMode, const OUString& rDocumentName, bool bPasswordToModify ) -: mpAbort( NULL ) -, mpPassword( NULL ) + : mpPassword( NULL ) { switch( eType ) { @@ -154,7 +152,7 @@ DocPasswordRequest::DocPasswordRequest( DocPasswordRequestType eType, } maContinuations.realloc( 2 ); - maContinuations[ 0 ].set( mpAbort = new AbortContinuation ); + maContinuations[ 0 ].set( new AbortContinuation ); maContinuations[ 1 ].set( mpPassword = new PasswordContinuation ); } diff --git a/include/comphelper/docpasswordrequest.hxx b/include/comphelper/docpasswordrequest.hxx index 1538a7ffa2b1..be1cf36c71ab 100644 --- a/include/comphelper/docpasswordrequest.hxx +++ b/include/comphelper/docpasswordrequest.hxx @@ -60,7 +60,6 @@ private: private: ::com::sun::star::uno::Any maRequest; ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation > > maContinuations; - AbortContinuation * mpAbort; PasswordContinuation * mpPassword; }; @@ -95,7 +94,6 @@ private: private: ::com::sun::star::uno::Any maRequest; ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation > > maContinuations; - AbortContinuation * mpAbort; PasswordContinuation * mpPassword; }; |