order initializers according to class declaration

This commit is contained in:
Ondřej Hošek 2012-06-30 14:43:37 +02:00
parent b537c1af7c
commit a922f748e7
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
using namespace HLLib; using namespace HLLib;
using namespace HLLib::Mapping; using namespace HLLib::Mapping;
CView::CView(CMapping *pMapping, hlVoid *lpView, hlULongLong uiAllocationOffset, hlULongLong uiAllocationLength, hlULongLong uiOffset, hlULongLong uiLength) : pMapping(pMapping), lpView(lpView), uiAllocationOffset(uiAllocationOffset), uiAllocationLength(uiAllocationLength), uiOffset(uiOffset), uiLength(uiLength == 0 ? uiAllocationLength - uiOffset : uiLength) CView::CView(CMapping *pMapping, hlVoid *lpView, hlULongLong uiAllocationOffset, hlULongLong uiAllocationLength, hlULongLong uiOffset, hlULongLong uiLength) : pMapping(pMapping), lpView(lpView), uiOffset(uiOffset), uiLength(uiLength == 0 ? uiAllocationLength - uiOffset : uiLength), uiAllocationOffset(uiAllocationOffset), uiAllocationLength(uiAllocationLength)
{ {
assert(this->uiOffset + this->uiLength <= this->uiAllocationLength); assert(this->uiOffset + this->uiLength <= this->uiAllocationLength);
} }

View File

@ -15,7 +15,7 @@
using namespace HLLib; using namespace HLLib;
using namespace HLLib::Streams; using namespace HLLib::Streams;
CMappingStream::CMappingStream(Mapping::CMapping &Mapping, hlULongLong uiMappingOffset, hlULongLong uiMappingSize, hlULongLong uiViewSize) : bOpened(hlFalse), uiMode(HL_MODE_INVALID), Mapping(Mapping), uiMappingOffset(uiMappingOffset), uiMappingSize(uiMappingSize), uiViewSize(uiViewSize), pView(0), uiPointer(0), uiLength(0) CMappingStream::CMappingStream(Mapping::CMapping &Mapping, hlULongLong uiMappingOffset, hlULongLong uiMappingSize, hlULongLong uiViewSize) : bOpened(hlFalse), uiMode(HL_MODE_INVALID), Mapping(Mapping), pView(NULL), uiMappingOffset(uiMappingOffset), uiMappingSize(uiMappingSize), uiViewSize(uiViewSize), uiPointer(0), uiLength(0)
{ {
if(this->uiViewSize == 0) if(this->uiViewSize == 0)
{ {