persistentstorage/dbms/ustor/US_FILE.CPP
branchRCL_3
changeset 16 b6ab70c1385f
parent 0 08ec8eefde2f
child 23 26645d81f48d
--- a/persistentstorage/dbms/ustor/US_FILE.CPP	Tue May 25 14:35:19 2010 +0300
+++ b/persistentstorage/dbms/ustor/US_FILE.CPP	Wed Jun 09 11:36:09 2010 +0300
@@ -98,7 +98,7 @@
 	default:
 		__LEAVE(KErrNotSupported);
 	case TDbFormat::ECreate:
-		store=CPermanentFileStore::CreateL(iFs,aName,EFileRead|EFileWrite);
+	store=CPermanentFileStore::CreateL(iFs,aName,EFileRead|EFileWrite);
 		break;
 	case TDbFormat::EReplace:
 		store=CPermanentFileStore::ReplaceL(iFs,aName,EFileRead|EFileWrite);
@@ -143,7 +143,7 @@
 	__ASSERT(!iName);	// check construction phase
 //
 	iName=aName.AllocL();
-	const TUint mode=aMode==TDbFormat::EReadOnly ? EFileShareReadersOnly : EFileWrite;
+	TUint mode=aMode==TDbFormat::EReadOnly ? EFileShareReadersOnly : EFileWrite;
 	CFileStore* store=CPermanentFileStore::OpenL(iFs,*iName,mode);
 	iStore=store;
 	CDbStoreDatabase::RestoreL(DatabaseIdL(store->Root()));