Commit 4543c744 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QStringLiteral + use nullptr

parent ba459ba6
......@@ -36,9 +36,6 @@ MouseGestures::MouseGestures(const QString &settingsPath, QObject* parent)
, m_filter(0)
, m_settingsFile(settingsPath + QL1S("/extensions.ini"))
, m_button(Qt::MiddleButton)
, m_enableRockerNavigation(false)
, m_blockNextRightMouseRelease(false)
, m_blockNextLeftMouseRelease(false)
{
loadSettings();
}
......
......@@ -76,10 +76,10 @@ private:
QString m_settingsFile;
Qt::MouseButton m_button;
bool m_enableRockerNavigation;
bool m_enableRockerNavigation = false;
bool m_blockNextRightMouseRelease;
bool m_blockNextLeftMouseRelease;
bool m_blockNextRightMouseRelease = false;
bool m_blockNextLeftMouseRelease = false;
bool m_oldWebViewForceContextMenuOnRelease = false;
};
......
......@@ -24,7 +24,6 @@
MouseGesturesPlugin::MouseGesturesPlugin()
: QObject()
, m_gestures(0)
{
}
......
......@@ -40,7 +40,7 @@ public:
bool mouseMove(Qz::ObjectName type, QObject *obj, QMouseEvent *event) override;
private:
MouseGestures* m_gestures;
MouseGestures* m_gestures = nullptr;
};
......
......@@ -112,7 +112,7 @@ void PIM_Handler::populateWebViewMenu(QMenu* menu, WebView* view, const WebHitTe
}
QMenu* pimMenu = new QMenu(tr("Insert Personal Information"));
pimMenu->setIcon(QIcon(":/PIM/data/PIM.png"));
pimMenu->setIcon(QIcon(QStringLiteral(":/PIM/data/PIM.png")));
if (!m_allInfo[PI_FirstName].isEmpty() && !m_allInfo[PI_LastName].isEmpty()) {
const QString fullname = m_allInfo[PI_FirstName] + QLatin1Char(' ') + m_allInfo[PI_LastName];
......
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