--- a/javaruntimes/midp/runtimestarter/src/midpruntimestarter.cpp Wed Sep 15 12:05:25 2010 +0300
+++ b/javaruntimes/midp/runtimestarter/src/midpruntimestarter.cpp Wed Oct 13 14:23:59 2010 +0300
@@ -63,7 +63,7 @@
MidpRuntimeStarter::MidpRuntimeStarter(): mMidletInfo(new MidletInfo()), // codescanner::nonleavenew
- mRuntimeState(Constructed), mShudownOk(false)
+ mRuntimeState(Constructed), mShudownOk(false)
{
JELOG2(EJavaRuntime);
}
@@ -350,6 +350,8 @@
void MidpRuntimeStarter::startCoreUi(std::auto_ptr<java::util::DynamicLibLoader>& coreUiLoader)
{
+ CoreUi& coreUi = CoreUi::getUiInstance(coreUiLoader);
+
// Create the default UI only if not going into pre-warmed state.
if (!mMidletInfo->mPreWarmStart)
{
@@ -440,7 +442,7 @@
// Start the coreUI.
JavaOsLayer::startUpTrace("Starting CoreUI", -1, -1);
- CoreUi::start(coreUiLoader, mMidletInfo->mMIDletUid, &uiParams);
+ coreUi.start(mMidletInfo->mMIDletUid, &uiParams);
JavaOsLayer::startUpTrace("CoreUI started", -1, -1);
getMIDletSuiteInfoFromStorage(javaStorage.get(), JAR_PATH,
@@ -608,16 +610,16 @@
if (c & 0xFF00)
{
// 16 bit char, must send all bits
- res += (L'A' + (c >> 12));
- res += (L'A' + ((c & 0x0F00) >> 8));
- res += (L'A' + ((c & 0x00F0) >> 4));
- res += (L'A' + ((c & 0x000F)));
+ res += ( L'A' + (c >> 12) );
+ res += ( L'A' + ((c & 0x0F00) >> 8) );
+ res += ( L'A' + ((c & 0x00F0) >> 4) );
+ res += ( L'A' + ((c & 0x000F)) );
}
else
{
// 8 bit char, send only lowest 8 bits
- res += (L'a' + ((c & 0x00F0) >> 4));
- res += (L'a' + ((c & 0x000F)));
+ res += ( L'a' + ((c & 0x00F0) >> 4) );
+ res += ( L'a' + ((c & 0x000F)) );
}
}