photosgallery/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcetaskmdsattribute.cpp
branchRCL_3
changeset 25 191387a8b767
parent 18 bcb43dc84c44
child 35 420f6808bf21
--- a/photosgallery/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcetaskmdsattribute.cpp	Wed Apr 14 15:57:24 2010 +0300
+++ b/photosgallery/collectionframework/datasource/plugins/glxdatasourcemde2.5/src/glxdatasourcetaskmdsattribute.cpp	Tue Apr 27 16:37:53 2010 +0300
@@ -583,7 +583,7 @@
             CMdEPropertyDef& sizeProperty = aContainer->Def().GetPropertyDefL(
                     KPropertyDefNameSize);
             TInt sizeIndex = aContainer->Property(sizeProperty, size);
-            TInt sizeValue;
+            TUint sizeValue;
             if(sizeIndex == KErrNotFound)
                 {
                 sizeValue = 0;
@@ -1438,8 +1438,8 @@
     CMdEQuery* query = DataSource()->Session().NewObjectQueryL(*DataSource()->NamespaceDef(), 
             *queryBaseObject, this);
     CleanupStack::PushL(query);
+    query->SetResultMode(aResultMode);
     SetQueryConditionsL(*query, aFilterProperties, aContainerId, aObjectDef);
-    query->SetResultMode(aResultMode);
   
     iQueryAttributes.AppendL(TGlxQueryAttribute(aAttribute, aEntry, aFilterProperties));