[vbox-dev] A harddisk seems to be forced to have a parent, I don't understand the design ...
Mark Cranness
mark.cranness at gmail.com
Thu Feb 11 21:13:05 PST 2010
On 11 February 2010 23:17, Christophe Devriese
<christophe.devriese at gmail.com> wrote:
> Seems to me that it does.
> On Thu, Feb 11, 2010 at 8:48 AM, Achim Hasenmueller <achim at sun.com> wrote:
>>
>> The assertion does not trigger if mParent == NULL, right?
>> Achim.
Try replacing it with:
Assert ( (!parent.isNull() || mParent == NULL) );
If the original (without the double brackets) triggers the Assert when
mParent == NULL, but the version with double-brackets does not, then
you have a bad definition of the Assert macro.
I note that COMDefs.h includes this:
+++++++++++++++
/* Both VBox/com/assert.h and qglobal.h contain a definition of ASSERT.
* Either of them can be already included here, so try to shut them up. */
#undef ASSERT
#include <VBox/com/com.h>
#include <VBox/com/array.h>
#include <VBox/com/assert.h>
#undef ASSERT
+++++++++++++++
@Devs: Wouldn't the second '#undef ASSERT' be a problem...
Mark
More information about the vbox-dev
mailing list