summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2018-09-02 11:38:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-03 08:33:56 +0200
commit9e28155909a5d3295e2a531731790a42fdb4c8a2 (patch)
tree20e26ea126a7c1c7f52573b4bdf1621b6afa8878
parent6be7e2e9dd8027d284f1b00ef6e3b4654eec7d79 (diff)
cppcheck: knownConditionTrueFalse
Change-Id: I6ee2dd049b2482d93b5d05754c11b34bf535e377 Reviewed-on: https://gerrit.libreoffice.org/59907 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--sc/source/ui/docshell/dbdocimp.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx
index df9b96129c2f..49c1cf8d542b 100644
--- a/sc/source/ui/docshell/dbdocimp.cxx
+++ b/sc/source/ui/docshell/dbdocimp.cxx
@@ -140,7 +140,6 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam,
ScDocShellModificator aModificator( rDocShell );
bool bSuccess = false;
- bool bApi = false; //! pass as argument
bool bTruncated = false; // for warning
const char* pErrStringId = nullptr;
OUString aErrorMessage;
@@ -602,10 +601,10 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam,
if (pWaitWin)
pWaitWin->LeaveWait();
- if ( bTruncated && !bApi ) // show warning
+ if ( bTruncated ) // show warning
ErrorHandler::HandleError(SCWARN_IMPORT_RANGE_OVERFLOW);
}
- else if ( !bApi )
+ else
{
if (pWaitWin)
pWaitWin->LeaveWait();