diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-11-11 16:16:01 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-11-11 16:16:27 +0100 |
commit | f3aa69b0257744df7105606c1a8f0d1b44ac8d0a (patch) | |
tree | 17c4014441a804d4b3c6f24ffd609255a5e187a3 /dbaccess | |
parent | 1e3e415dbe877666e1575128a7ec3d5d9c076ffa (diff) |
Fix the scope of the variable 'pApprove' can be reduced
Change-Id: I1ce2682224fbb0c93bc7ec97a31a59020ac6be02
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/dataaccess/documentdefinition.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx index 5abe8f8bb8d9..47c6cd385292 100644 --- a/dbaccess/source/core/dataaccess/documentdefinition.cxx +++ b/dbaccess/source/core/dataaccess/documentdefinition.cxx @@ -1287,10 +1287,9 @@ sal_Bool ODocumentDefinition::save(sal_Bool _bApprove) pDocuSave = new ODocumentSaveContinuation; pRequest->addContinuation(pDocuSave); } - OInteraction< XInteractionApprove >* pApprove = NULL; if ( _bApprove ) { - pApprove = new OInteraction< XInteractionApprove >; + OInteraction< XInteractionApprove >* pApprove = new OInteraction< XInteractionApprove >; pRequest->addContinuation(pApprove); } |