lowlevellibsandfws/pluginfw/Framework/EcomTestUtils/t_makefilewriteable.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
--- a/lowlevellibsandfws/pluginfw/Framework/EcomTestUtils/t_makefilewriteable.cpp	Tue Aug 31 16:54:36 2010 +0300
+++ b/lowlevellibsandfws/pluginfw/Framework/EcomTestUtils/t_makefilewriteable.cpp	Wed Sep 01 12:36:54 2010 +0100
@@ -25,13 +25,9 @@
 	{
 	// Make sure the file is not read-only
 	RDebug::Print(_L("Open for writing file %S\n"), &aFile);				
-	TInt r = KErrNone;
+	
 	RFs fs;
-	r = fs.Connect();
-	if (r != KErrNone)
-		{
-			User::Leave(r);
-		}
+	fs.Connect();
 	CFileMan* fileMan = CFileMan::NewL(fs);
 	CleanupStack::PushL(fileMan);
 	TInt err = fileMan->Attribs(aFile, 0, KEntryAttReadOnly, TTime(0), 0);