mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
GuiWorkArea: pass KeySymbol parameters as const references
Spotted by Coverity scan.
This commit is contained in:
parent
8ea9c2da03
commit
91f3f27545
@ -1037,7 +1037,7 @@ bool CompressorProxy::emitCheck(bool isAutoRepeat)
|
||||
}
|
||||
|
||||
|
||||
void CompressorProxy::slot(KeySymbol sym, KeyModifier mod, bool isAutoRepeat)
|
||||
void CompressorProxy::slot(KeySymbol const & sym, KeyModifier mod, bool isAutoRepeat)
|
||||
{
|
||||
if (emitCheck(isAutoRepeat))
|
||||
Q_EMIT signal(sym, mod);
|
||||
|
@ -102,7 +102,7 @@ Q_SIGNALS:
|
||||
///
|
||||
void bufferViewChanged();
|
||||
/// send key event to CompressorProxy
|
||||
void compressKeySym(KeySymbol sym, KeyModifier mod, bool isAutoRepeat);
|
||||
void compressKeySym(KeySymbol const & sym, KeyModifier mod, bool isAutoRepeat);
|
||||
|
||||
private Q_SLOTS:
|
||||
/// Scroll the BufferView.
|
||||
@ -170,9 +170,9 @@ class CompressorProxy : public QObject
|
||||
bool emitCheck(bool isAutoRepeat);
|
||||
bool flag_;
|
||||
// input: event to compress
|
||||
Q_SLOT void slot(KeySymbol sym, KeyModifier mod, bool isAutoRepeat);
|
||||
Q_SLOT void slot(KeySymbol const & sym, KeyModifier mod, bool isAutoRepeat);
|
||||
// output: compressed event
|
||||
Q_SIGNAL void signal(KeySymbol sym, KeyModifier mod);
|
||||
Q_SIGNAL void signal(KeySymbol const & sym, KeyModifier mod);
|
||||
public:
|
||||
// No default constructor, since the proxy must be a child of the
|
||||
// target object.
|
||||
|
Loading…
Reference in New Issue
Block a user