Commit b6eeb4d7 authored by Laurent Montel's avatar Laurent Montel 😁

Fix clazy warning

parent 67f933b6
......@@ -44,7 +44,7 @@ public:
: d(dia) { }
~KCharSelectBookmarkOwner() { }
QString currentTitle() const Q_DECL_OVERRIDE
QString currentTitle() const override
{
uint ucs4 = d->charSelect->currentCodePoint();
if (QChar::isPrint(ucs4)) {
......@@ -54,12 +54,12 @@ public:
}
}
QUrl currentUrl() const Q_DECL_OVERRIDE
QUrl currentUrl() const override
{
return QUrl(formatCodePoint(d->charSelect->currentCodePoint()));
}
void openBookmark(const KBookmark &bm, Qt::MouseButtons, Qt::KeyboardModifiers) Q_DECL_OVERRIDE
void openBookmark(const KBookmark &bm, Qt::MouseButtons, Qt::KeyboardModifiers) override
{
QString c = bm.url().toString(QUrl::PreferLocalFile | QUrl::RemoveScheme);
if (c.startsWith(QLatin1String("U+"))) {
......@@ -87,8 +87,8 @@ private:
/******************************************************************/
//==================================================================
KCharSelectDia::KCharSelectDia()
: KXmlGuiWindow()
KCharSelectDia::KCharSelectDia(QWidget *parent)
: KXmlGuiWindow(parent)
{
KSharedConfig::Ptr config = KSharedConfig::openConfig();
KConfigGroup gr = config->group("General");
......
......@@ -33,12 +33,12 @@ class KCharSelectDia : public KXmlGuiWindow
Q_OBJECT
public:
KCharSelectDia();
explicit KCharSelectDia(QWidget *parent = nullptr);
friend class KCharSelectBookmarkOwner;
protected:
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
void closeEvent(QCloseEvent *event) override;
QGridLayout *grid;
KCharSelect *charSelect;
......
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