[Libreoffice-commits] core.git: sc/source
Julien Nabet
serval2412 at yahoo.fr
Sat Mar 22 07:28:28 PDT 2014
sc/source/ui/docshell/docsh.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 655dedb1a76249da1d50079d51eec5c9f3baac00
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Mar 22 15:26:46 2014 +0100
cppcheck: bRet reassigned before using its value
Change-Id: Iaa1dbf9c5638001018b71c946361bfc6db58be83
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index ce0e0b8..7e505f4 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -1695,7 +1695,8 @@ bool ScDocShell::SaveAs( SfxMedium& rMedium )
if(!bChartExport)
{
bRet = SfxObjectShell::SaveAs( rMedium );
- bRet = SaveXML( &rMedium, NULL );
+ if (bRet)
+ bRet = SaveXML( &rMedium, NULL );
}
else
{
More information about the Libreoffice-commits
mailing list