summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2018-10-08 13:08:06 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2018-10-08 14:41:24 +0200
commitd75a96d50bb62e40d69d7ab432ca94f23d36e82f (patch)
tree4f56ea673b15d80860c849e7581fad466abe9421 /basctl
parent2f74b6842f56dc0313022bc0e51472342b0515a6 (diff)
cppcheck: knownConditionTrueFalse
Change-Id: I245a353b69af7dcedf4c0f3f1271f1fdf86fd09c Reviewed-on: https://gerrit.libreoffice.org/61523 Tested-by: Jenkins Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index a10f1b9ba34b..15d2715a6973 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -269,11 +269,8 @@ void ModulWindow::CheckCompileBasic()
GetShell()->GetViewFrame()->GetWindow().EnterWait();
- if( bModified )
- {
- AssertValidEditEngine();
- GetEditorWindow().SetSourceInBasic();
- }
+ AssertValidEditEngine();
+ GetEditorWindow().SetSourceInBasic();
bool bWasModified = GetBasic()->IsModified();