idlehomescreen/nativeuicontroller/src/aitoolbarrenderer.cpp
branchRCL_3
changeset 102 ba63c83f4716
parent 88 3321d3e205b6
--- a/idlehomescreen/nativeuicontroller/src/aitoolbarrenderer.cpp	Wed Sep 15 12:00:00 2010 +0300
+++ b/idlehomescreen/nativeuicontroller/src/aitoolbarrenderer.cpp	Wed Oct 13 14:18:30 2010 +0300
@@ -36,7 +36,7 @@
 
 #include "ainativeuiplugins.h"
 
-#include <ainativeui.rsg>
+#include <AiNativeUi.rsg>
 #include "debug.h"
 
 using namespace AiNativeUiController;
@@ -337,10 +337,8 @@
     if ( index >= iButtons.Count() )
         {
         button = CAiToolbarButton::NewL();
-        CleanupStack::PushL( button );
         button->SetShortcutId( aShortcutId );
-        iButtons.AppendL( button );
-        CleanupStatck::Pop( button );
+        iButtons.Append( button );
         }
 
     // Use the old button