BOM are a nice thing :)
This would fix the gcc4 build.. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33850 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -12,6 +12,9 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#define NOTE "NotFieldTester : "
|
||||||
|
#define MINI "MinMatchFieldTester : "
|
||||||
|
|
||||||
BitFieldTester::BitFieldTester()
|
BitFieldTester::BitFieldTester()
|
||||||
{
|
{
|
||||||
// empty
|
// empty
|
||||||
@@ -154,14 +157,13 @@ NotFieldTester::NotFieldTester(BMessage* from)
|
|||||||
if (slaveObj) {
|
if (slaveObj) {
|
||||||
fSlave = dynamic_cast<BitFieldTester*>(slaveObj);
|
fSlave = dynamic_cast<BitFieldTester*>(slaveObj);
|
||||||
if (fSlave == NULL) {
|
if (fSlave == NULL) {
|
||||||
printf("NotFieldTester:
|
printf(NOTE "Error casting slaveObj to BitFieldTester!\n");
|
||||||
Error casting slaveObj to BitFieldTester!\n");
|
|
||||||
delete slaveObj;
|
delete slaveObj;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
printf("NotFieldTester: instantiate_object returned NULL!\n");
|
printf(NOTE "instantiate_object returned NULL!\n");
|
||||||
} else
|
} else
|
||||||
printf("NotFieldTester: Couldn't unarchive NotFieldTester slave!\n");
|
printf(NOTE "Couldn't unarchive NotFieldTester slave!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -234,16 +236,15 @@ MinMatchFieldTester::MinMatchFieldTester(BMessage* from)
|
|||||||
if (nextSlave)
|
if (nextSlave)
|
||||||
fSlaves.AddItem(nextSlave);
|
fSlaves.AddItem(nextSlave);
|
||||||
else {
|
else {
|
||||||
printf("MinMatchFieldTester:
|
printf(MINI "Error casting slaveObj to BitFieldTester!\n");
|
||||||
Error casting slaveObj to BitFieldTester!\n");
|
|
||||||
delete slaveObj;
|
delete slaveObj;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
printf("MinMatchFieldTester: instantiate_object returned NULL!\n");
|
printf(MINI "instantiate_object returned NULL!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (from->FindInt32("mMin", (int32*) &fMinNum) != B_NO_ERROR)
|
if (from->FindInt32("mMin", (int32*) &fMinNum) != B_NO_ERROR)
|
||||||
printf("MinMatchFieldTester: Error getting mMin!\n");
|
printf(MINI "Error getting mMin!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user