persistentstorage/sql/SRC/Server/SqlSrvConfig.cpp
changeset 55 44f437012c90
parent 31 ba1c4f4a893f
--- a/persistentstorage/sql/SRC/Server/SqlSrvConfig.cpp	Mon Sep 27 11:59:56 2010 +0100
+++ b/persistentstorage/sql/SRC/Server/SqlSrvConfig.cpp	Tue Oct 19 16:26:13 2010 +0100
@@ -465,12 +465,10 @@
 	for(TInt i = aDirEntries.Count() - 1; i >= 0; --i)
 		{
 		const TEntry& entry = aDirEntries[i];
-		if(!entry.IsDir())
-			{
-			HBufC* filename = entry.iName.AllocLC();
-			iConfigFileNames.AppendL(filename);
-			CleanupStack::Pop(); // filename
-			}
+		__ASSERT_DEBUG(!entry.IsDir(), __SQLPANIC(ESqlPanicInternalError));
+		HBufC* filename = entry.iName.AllocLC();
+		iConfigFileNames.AppendL(filename);
+		CleanupStack::Pop(); // filename
 		}
 	}