Commit 6cf482d3 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Add a missing static storage class

Presumably `mapping` should have been `static`, as in
`contactSearchFieldMapping()` and `emailSearchFieldMapping()`.
parent 6a455dad
Pipeline #78050 skipped
......@@ -335,7 +335,7 @@ ContactSearchTerm::ContactSearchField ContactSearchTerm::fromKey(const QString &
QMap<IncidenceSearchTerm::IncidenceSearchField, QString> incidenceSearchFieldMapping()
{
QMap<IncidenceSearchTerm::IncidenceSearchField, QString> mapping;
static QMap<IncidenceSearchTerm::IncidenceSearchField, QString> mapping;
if (mapping.isEmpty()) {
mapping.insert(IncidenceSearchTerm::All, QStringLiteral("all"));
mapping.insert(IncidenceSearchTerm::PartStatus, QStringLiteral("partstatus"));
......
Markdown is supported
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