# HG changeset patch # User Mike Kinghan # Date 1285239422 -3600 # Node ID 9b718307b8eceea9d35149ba8a0622a1d008b53d # Parent 4a60358e2cbf56f1e566c7cc1e6b8cdcbfd085be Fix for Bug 3739 - [GCCE] In-class initialization of const member is an error in drivemanger.h Fix for Bug 3742 - [GCCE] in-class initialization of static const members is an error in tscsiservercmds.h diff -r 4a60358e2cbf -r 9b718307b8ec kerneltest/f32test/shostmassstorage/testclient/usbtestmsclient/inc/drivemanager.h --- a/kerneltest/f32test/shostmassstorage/testclient/usbtestmsclient/inc/drivemanager.h Fri Aug 13 14:17:31 2010 +0100 +++ b/kerneltest/f32test/shostmassstorage/testclient/usbtestmsclient/inc/drivemanager.h Thu Sep 23 11:57:02 2010 +0100 @@ -39,7 +39,10 @@ class TMediaParams { public: - const TUint32 KDefaultBlockSize = 0x200; //default block size for FAT + enum + { + KDefaultBlockSize = 0x200 + }; void Init(TLocalDriveCapsV4& aCaps); diff -r 4a60358e2cbf -r 9b718307b8ec kerneltest/f32test/shostmassstorage/testclient/usbtestmsclient/protocol/include/tscsiservercmds.h --- a/kerneltest/f32test/shostmassstorage/testclient/usbtestmsclient/protocol/include/tscsiservercmds.h Fri Aug 13 14:17:31 2010 +0100 +++ b/kerneltest/f32test/shostmassstorage/testclient/usbtestmsclient/protocol/include/tscsiservercmds.h Thu Sep 23 11:57:02 2010 +0100 @@ -143,7 +143,10 @@ EDeferredErrors = 0x71 }; - static const TUint KCommandLength = 18; + enum + { + KCommandLength = 18 + }; TScsiServerRequestSenseResp() {}; @@ -189,7 +192,11 @@ class TScsiServerInquiryResp: public MScsiServerResp { public: - static const TUint KResponseLength = 36; + + enum + { + KResponseLength = 36 + }; TScsiServerInquiryResp(const TMassStorageConfig& aConfig); void Encode(TDes8& aBuffer) const; @@ -240,7 +247,11 @@ class TScsiServerModeSense6Resp: public MScsiServerResp { public: - static const TUint KCommandLength = 4; + + enum + { + KCommandLength = 4 + }; TScsiServerModeSense6Resp(); void SetWp(TBool aWp); @@ -305,7 +316,11 @@ class TScsiServerReadFormatCapacitiesResp: public MScsiServerResp { public: - static const TUint KResponseLength = 12; + + enum + { + KResponseLength = 12 + }; TScsiServerReadFormatCapacitiesResp(TAllocationLength aAllocationLength); void SetNumberBlocks(TUint32 aNumberBlocks) {iNumberBlocks = aNumberBlocks;} void Encode(TDes8& aBuffer) const; @@ -336,7 +351,12 @@ class TScsiServerReadCapacity10Resp: public MScsiServerResp { public: - static const TUint KCommandLength = 8; + + enum + { + KCommandLength = 8 + }; + TScsiServerReadCapacity10Resp() {}; void Set(TUint aBlockSize, const TInt64& aNumberBlocks); void Encode(TDes8& aBuffer) const;