diff -r a7ccb69868af -r 156dce2f0a3b csxhelp/HelpEngine/src/CSXHRuntimeIndexing.cpp --- a/csxhelp/HelpEngine/src/CSXHRuntimeIndexing.cpp Wed Sep 15 11:59:08 2010 +0300 +++ b/csxhelp/HelpEngine/src/CSXHRuntimeIndexing.cpp Wed Oct 13 14:17:45 2010 +0300 @@ -132,12 +132,7 @@ // rename to index.xml. otherwise, the old index file still exists. // des.Append( KMasterMetaTmpFile ); - TInt err = KErrNone; - err = iFile.Replace( fileSession, des, EFileWrite ); - if ( KErrNone != err || 0 == iFile.SubSessionHandle() ) - { - return; - } + iFile.Replace( fileSession, des, EFileWrite ); HBufC8* driveInfo = HBufC8::NewLC( KMaxDriveInfo ); TPtr8 ptr = driveInfo->Des(); @@ -151,10 +146,6 @@ void CCSXHRuntimeIndexing::FinishAndCloseIndexFileL() { - if ( 0 == iFile.SubSessionHandle() ) - { - return; - } RFs& fileSession = iCoeEnv->FsSession(); iFile.Write( KIndexCollectEnd ); iFile.Close(); @@ -195,10 +186,6 @@ void CCSXHRuntimeIndexing::RuntimeGenerateIndexL( const CCSXHHtmlTOC1& aToc1, const TDesC& aFeature ) { - if ( 0 == iFile.SubSessionHandle() ) - { - return; - } // Form into an entry, like // HBufC8* appName = CnvUtfConverter::ConvertFromUnicodeToUtf8L( aToc1.GetName() );