dbaccess/source/core/dataaccess/documentdefinition.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit f3aa69b0257744df7105606c1a8f0d1b44ac8d0a Author: Julien Nabet <serval2...@yahoo.fr> Date: Sun Nov 11 16:16:01 2012 +0100 Fix the scope of the variable 'pApprove' can be reduced Change-Id: I1ce2682224fbb0c93bc7ec97a31a59020ac6be02 diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx index 5abe8f8..47c6cd3 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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits