[Libreoffice-commits] .: dbaccess/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Nov 11 07:17:49 PST 2012
dbaccess/source/core/dataaccess/documentdefinition.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit f3aa69b0257744df7105606c1a8f0d1b44ac8d0a
Author: Julien Nabet <serval2412 at 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);
}
More information about the Libreoffice-commits
mailing list