webengine/widgetregistry/Client/src/WidgetRegistryClient.cpp
branchRCL_3
changeset 48 79859ed3eea9
parent 35 1f3c3f2f5b0a
child 49 919f36ff910f
--- a/webengine/widgetregistry/Client/src/WidgetRegistryClient.cpp	Thu Aug 19 10:58:56 2010 +0300
+++ b/webengine/widgetregistry/Client/src/WidgetRegistryClient.cpp	Tue Aug 31 16:17:46 2010 +0300
@@ -19,7 +19,8 @@
 #include <e32base.h>
 #include <f32file.h>
 #include <s32mem.h>
-#include <widgetregistryclient.h>
+#include "WidgetRegistryClient.h"
+
 
 // ============================================================================
 // Starts the widget registry server
@@ -625,14 +626,14 @@
 CBufFlat* RWidgetRegistryClientSession::MarshalPropertyValuesL(
     const RPointerArray<CWidgetPropertyValue>&  aPropertyValues ) const
     {
-    CBufFlat* buf = CBufFlat::NewL( 4096 );
+    CBufFlat* buf = CBufFlat::NewL( 512 );
     CleanupStack::PushL( buf );
 
     RBufWriteStream stream( *buf );
     CleanupClosePushL( stream );
 
     TInt i = 0;
-    for ( ; i < aPropertyValues.Count(); ++i )
+    for ( ; i < EWidgetPropertyIdCount; ++i )
         {
         aPropertyValues[i]->SerializeL( stream );
         }