Commit cb2e6ed7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

typedef -> using

parent c50e6b96
Pipeline #39447 passed with stage
in 10 minutes and 46 seconds
......@@ -82,7 +82,7 @@ public:
/**
* Defines a list of Field enums.
*/
typedef QVector<Field> Fields;
using Fields = QVector<Field>;
/**
* Returns the i18n label for the @p field.
......
......@@ -29,7 +29,7 @@ static const char ContactHeaderForeColor[] = "ContactHeaderForeColor";
static const char ContactHeaderBGColor[] = "ContactHeaderBGColor";
struct ContactBlock {
typedef QVector<ContactBlock> List;
using List = QVector<ContactBlock>;
QString header;
QStringList entries;
......
......@@ -48,7 +48,7 @@ QuickSearchWidget::~QuickSearchWidget()
QSize QuickSearchWidget::sizeHint() const
{
const QSize size = mEdit->sizeHint();
return QSize(200, size.height());
return {200, size.height()};
}
void QuickSearchWidget::slotFocusQuickSearch()
......
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