[Libreoffice-commits] core.git: sc/source
Julien Nabet
serval2412 at yahoo.fr
Sun Jan 17 07:32:43 PST 2016
sc/source/filter/html/htmlexp.cxx | 2 +-
sc/source/ui/docshell/docfunc.cxx | 5 +----
2 files changed, 2 insertions(+), 5 deletions(-)
New commits:
commit 74063b259e7da402ede7761194639462b1b24759
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Jan 17 15:10:38 2016 +0100
cppcheck: fix 2 variableScope reports in sc
Change-Id: Iea1f8b851d3d9b5c9b22165f1a33e124212d8e80
Reviewed-on: https://gerrit.libreoffice.org/21535
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index 7b06e98..668c702 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -1289,7 +1289,6 @@ bool ScHTMLExport::WriteFieldText( const EditTextObject* pData )
void ScHTMLExport::CopyLocalFileToINet( OUString& rFileNm,
const OUString& rTargetNm, bool bFileToFile )
{
- bool bRet = false;
INetURLObject aFileUrl, aTargetUrl;
aFileUrl.SetSmartURL( rFileNm );
aTargetUrl.SetSmartURL( rTargetNm );
@@ -1314,6 +1313,7 @@ void ScHTMLExport::CopyLocalFileToINet( OUString& rFileNm,
pFileNameMap.reset( new std::map<OUString, OUString>() );
}
+ bool bRet = false;
SvFileStream aTmp( aFileUrl.PathToFileName(), StreamMode::READ );
OUString aSrc = rFileNm;
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index d5d0ccb..4cc3fd2 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -5157,8 +5157,6 @@ void ScDocFunc::ResizeMatrix( const ScRange& rOldRange, const ScAddress& rNewEnd
SCROW nStartRow = rOldRange.aStart.Row();
SCTAB nTab = rOldRange.aStart.Tab();
- bool bRet = false;
-
OUString aFormula;
rDoc.GetFormula( nStartCol, nStartRow, nTab, aFormula );
if ( aFormula.startsWith("{") && aFormula.endsWith("}") )
@@ -5178,8 +5176,7 @@ void ScDocFunc::ResizeMatrix( const ScRange& rOldRange, const ScAddress& rNewEnd
if ( DeleteContents( aMark, InsertDeleteFlags::CONTENTS, true, bApi ) )
{
// GRAM_PODF_A1 for API compatibility.
- bRet = EnterMatrix( aNewRange, &aMark, nullptr, aFormula, bApi, false, EMPTY_OUSTRING, formula::FormulaGrammar::GRAM_PODF_A1 );
- if (!bRet)
+ if (!EnterMatrix( aNewRange, &aMark, nullptr, aFormula, bApi, false, EMPTY_OUSTRING, formula::FormulaGrammar::GRAM_PODF_A1 ))
{
// versuchen, alten Zustand wiederherzustellen
EnterMatrix( rOldRange, &aMark, nullptr, aFormula, bApi, false, EMPTY_OUSTRING, formula::FormulaGrammar::GRAM_PODF_A1 );
More information about the Libreoffice-commits
mailing list