Commit 43702d31 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Remove commented code & fix incorrect constFirst

parent b3ca7459
Pipeline #87599 passed with stage
in 2 minutes and 47 seconds
......@@ -274,7 +274,6 @@ void KateGitBlamePluginView::showCommitInfo(const QString &hash, KTextEditor::Vi
void KateGitBlamePluginView::blameFinished(int /*exitCode*/, QProcess::ExitStatus /*exitStatus*/)
{
// QString stdErr = QString::fromUtf8(m_blameInfoProc.readAllStandardError());
const QStringList stdOut = QString::fromUtf8(m_blameInfoProc.readAllStandardOutput()).split(QLatin1Char('\n'));
// check if the git process was running for a previous document when the view changed.
......@@ -301,7 +300,6 @@ void KateGitBlamePluginView::blameFinished(int /*exitCode*/, QProcess::ExitStatu
void KateGitBlamePluginView::showFinished(int exitCode, QProcess::ExitStatus exitStatus)
{
// QString stdErr = QString::fromUtf8(m_showProc.readAllStandardError());
QString stdOut = QString::fromUtf8(m_showProc.readAllStandardOutput());
// Try to avoid crashes caused by QTextBrowser running out of memory
......
......@@ -518,7 +518,7 @@ bool Sidebar::isCollapsed()
return false;
}
return m_splitter->sizes().constFirst() == 0;
return m_splitter->sizes().at(ownSplitIndex) == 0;
}
void Sidebar::handleCollapse(int pos, int index)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment