mirror of
https://github.com/KDE/konsole.git
synced 2026-06-12 16:05:45 -04:00
Fix a few llvm scanner issues - pointer is null and dead assignment
llvm's scan-build likes to check object is not null before calling
method and removed one dead assignment.
(cherry picked from commit 1be837a6aa)
This commit is contained in:
@@ -1896,7 +1896,6 @@ void SearchHistoryTask::executeOnScreenWindow(SessionPtr session , ScreenWindowP
|
||||
// line number search below assumes that the buffer ends with a new-line
|
||||
string.append('\n');
|
||||
|
||||
pos = -1;
|
||||
if (forwards)
|
||||
pos = string.indexOf(_regExp);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user