Commit f6abcdd6 authored by Jonathan Marten's avatar Jonathan Marten
Browse files

Port deprecated QFlags(0) -> default constructor

parent 5726f1fe
......@@ -9,8 +9,6 @@
K3b::ThreadJobCommunicationEvent::Data::Data()
: m_device( 0 ),
m_wantedMediaState( 0 ),
m_wantedMediaType( 0 ),
m_result( 0 )
{
}
......
......@@ -237,7 +237,7 @@ void K3b::Iso9660ImageWritingJob::startWriting()
// 4. If image not larger than 900 MiB: All media types
// 5. If not decided yet: DVD and BD media types.
Device::MediaTypes mt = 0;
Device::MediaTypes mt = Device::MediaTypes();
if (m_writingMode == K3b::WritingModeAuto ||
m_writingMode == K3b::WritingModeSao) {
if (writingApp() == K3b::WritingAppCdrdao)
......
......@@ -111,8 +111,7 @@ class K3b::Device::Device::Private
{
public:
Private()
: supportedProfiles(0),
deviceHandle(HANDLE_DEFAULT_VALUE),
: deviceHandle(HANDLE_DEFAULT_VALUE),
openedReadWrite(false),
burnfree(false) {
}
......
......@@ -494,7 +494,7 @@ void K3b::WriterSelectionWidget::setSupportedWritingApps( K3b::WritingApps i )
void K3b::WriterSelectionWidget::slotRefreshWritingApps()
{
K3b::WritingApps i = 0;
K3b::WritingApps i = K3b::WritingApps();
int lastSelected = m_comboWritingApp->selectedValue();
......
......@@ -144,7 +144,7 @@ Qt::ItemFlags ExternalBinModel::flags( const QModelIndex& index ) const
}
else
{
return 0;
return Qt::ItemFlags();
}
}
......
......@@ -274,7 +274,7 @@ Qt::ItemFlags ExternalBinPermissionModel::flags( const QModelIndex& index ) cons
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
}
else
return 0;
return Qt::ItemFlags();
}
......
......@@ -238,7 +238,7 @@ QVariant K3b::AudioTrackModel::data( const QModelIndex& index, int role ) const
Qt::ItemFlags K3b::AudioTrackModel::flags( const QModelIndex& index ) const
{
Qt::ItemFlags f = 0;
Qt::ItemFlags f = Qt::ItemFlags();
if ( index.isValid() && index.row() >= 0 && index.row() < d->medium.toc().count() &&
d->medium.toc()[index.row()].type() == K3b::Device::Track::TYPE_AUDIO ) {
......
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