Commit 942c0f5c authored by Laurent Montel's avatar Laurent Montel 😁

Minor fix

parent 9e41bf8c
......@@ -30,8 +30,8 @@ AddressesLocationWidget::AddressesLocationWidget(QWidget *parent)
{
setChildrenCollapsible(false);
mAddressLocationWidget = new AddressLocationWidget(this);
addWidget(mAddressLocationWidget);
mAddressLocationWidget->setObjectName(QStringLiteral("addresslocationwidget"));
addWidget(mAddressLocationWidget);
mAddressesLocationViewer = new AddressesLocationEngineViewer(this);
mAddressesLocationViewer->setObjectName(QStringLiteral("addresseslocationviewer"));
addWidget(mAddressesLocationViewer);
......
......@@ -49,9 +49,9 @@ SelectAddressTypeComboBox::~SelectAddressTypeComboBox()
void SelectAddressTypeComboBox::setType(KContacts::Address::Type type)
{
if (!mTypeList.contains((int)type)) {
if (!mTypeList.contains(static_cast<int>(type))) {
// insert at the end, but before the 'Others...' entry
mTypeList.insert(mTypeList.at(mTypeList.count() - 1), (int)type);
mTypeList.insert(mTypeList.at(mTypeList.count() - 1), static_cast<int>(type));
}
mType = type;
......
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