[haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- From: Michael Pfeiffer <michael.w.pfeiffer@xxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Fri, 30 May 2008 10:12:53 +0200
Am 30.05.2008 um 09:00 schrieb Stephan Assmus:
and the expression seems to be wrong too, shouldn't it be:
return InitCheck() == B_OK && volume.InitCheck() == B_OK
&& fDevice == volume.fDevice;
No. If they are both not initialized, they can be considered the same.
You're correct. Should have looked in the BeBook first.
- Michael
- References:
- [haiku-development] src_build_libbe_storage_Volume.cpp.diff
- From: kaoutsis
- [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- From: Michael Pfeiffer
- [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- From: Stephan Assmus
Other related posts:
- » [haiku-development] src_build_libbe_storage_Volume.cpp.diff
- » [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- » [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- » [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- » [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- » [haiku-development] src_build_libbe_storage_Volume.cpp.diff
and the expression seems to be wrong too, shouldn't it be:
return InitCheck() == B_OK && volume.InitCheck() == B_OK
&& fDevice == volume.fDevice;
No. If they are both not initialized, they can be considered the same.
- [haiku-development] src_build_libbe_storage_Volume.cpp.diff
- From: kaoutsis
- [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- From: Michael Pfeiffer
- [haiku-development] Re: src_build_libbe_storage_Volume.cpp.diff
- From: Stephan Assmus