--- a/videocollection/hgmyvideos/src/vcxhgmyvideoscollectionclient.cpp Tue Feb 02 00:12:10 2010 +0200
+++ b/videocollection/hgmyvideos/src/vcxhgmyvideoscollectionclient.cpp Fri Feb 19 22:52:52 2010 +0200
@@ -60,8 +60,7 @@
//
CVcxHgMyVideosCollectionClient::CVcxHgMyVideosCollectionClient()
: iCollectionOpenStatus( EVcxHgCollectionNotOpen ),
- iPendingCommand( EVcxHgMyVideosCollectionCommandNone ),
- iCollectionLevel( KErrNotFound )
+ iPendingCommand( EVcxHgMyVideosCollectionCommandNone )
{
}
@@ -158,15 +157,12 @@
//
TInt CVcxHgMyVideosCollectionClient::CollectionLevelL()
{
- if ( iCollectionLevel == KErrNotFound )
- {
- CMPXCollectionPath* path = iCollectionUtility->Collection().PathL();
- CleanupStack::PushL( path );
- iCollectionLevel = path->Levels();
- CleanupStack::PopAndDestroy( path );
- }
-
- return iCollectionLevel;
+ CMPXCollectionPath* path = iCollectionUtility->Collection().PathL();
+ CleanupStack::PushL( path );
+ TInt collectionLevel = path->Levels();
+ CleanupStack::PopAndDestroy( path );
+
+ return collectionLevel;
}
// -----------------------------------------------------------------------------
@@ -637,8 +633,6 @@
{
case TMPXCollectionMessage::EPathChanged:
{
- iCollectionLevel = KErrNotFound;
-
if ( data == EMcContainerOpened )
{
if ( iCollectionOpenStatus == EVcxHgCollectionOpening )