3 --- core
/mixertoolbox
.cpp
.orig
2013-05-04 01:52:48.000000000 +0000
4 +++ core
/mixertoolbox
.cpp
5 @@
-249,13 +249,13 @@
void MixerToolBox::initMixerInternal(Mul
8 // Add a master device (if we haven't defined one yet)
9 - if ( Mixer::getGlobalMasterMD(false) == 0 ) {
10 + if ( Mixer::getGlobalMasterMD(false) == nullptr ) {
11 // We have no master card yet. This actually only happens when there was
12 // not one defined in the kmixrc.
13 // So lets just set the first card as master card.
14 if ( Mixer::mixers().count() > 0 ) {
15 shared_ptr
<MixDevice
> master
= Mixer::mixers().first()->getLocalMasterMD();
16 - if ( master
!= 0 ) {
17 + if ( master
!= nullptr ) {
18 QString controlId
= master
->id();
19 Mixer::setGlobalMaster( Mixer::mixers().first()->id(), controlId
, true);