Fix warning about unused variable and minor optimization

Authored by dhaumann on Jan 3 2020, 2:07 PM.

Description

Fix warning about unused variable and minor optimization

Fixes this warning:
katescriptmanager.cpp: In member function ‘virtual bool KateScriptManager::exec(KTextEditor::View*, const QString&, QString&, const KTextEditor::Range&)’:
katescriptmanager.cpp:309:85: warning: unused parameter ‘errorMsg’ [-Wunused-parameter]

309 | bool KateScriptManager::exec(KTextEditor::View *view, const QString &_cmd, QString &errorMsg, const KTextEditor::Range &)
    |                                                                            ~~~~~~~~~^~~~~~~~

In addition, avoid QString construction by using the QStringRef
for == string comparison.

Details

Committed
dhaumannJan 3 2020, 2:07 PM
Parents
R39:1520fced9ccf: GIT_SILENT: Adapt qDebug() output to proper spaces and quotes
Branches
Unknown
Tags
Unknown