javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtcontrolhelper.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 66 2455ef1f5bbc
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
   220     CleanupStack::PopAndDestroy(2, cb);   // stream, cb
   220     CleanupStack::PopAndDestroy(2, cb);   // stream, cb
   221 
   221 
   222     CleanupStack::PushL(buffer);
   222     CleanupStack::PushL(buffer);
   223 
   223 
   224     TPtrC8 ptr8(buffer->Ptr(0));
   224     TPtrC8 ptr8(buffer->Ptr(0));
       
   225 #ifdef _UNICODE
   225     return TPtr16(reinterpret_cast<TText16*>(const_cast<TText8*>(ptr8.Ptr())),
   226     return TPtr16(reinterpret_cast<TText16*>(const_cast<TText8*>(ptr8.Ptr())),
   226                   length,
   227                   length,
   227                   length);  //lint !e826
   228                   length);  //lint !e826
       
   229 #else
       
   230     return TPtr8(const_cast<TText8*>(ptr8.Ptr()), ptr8.Length(),  ptr8.Length());
       
   231 #endif
   228 }
   232 }
   229 
   233 
   230 /*
   234 /*
   231  * Returns size for a bitmap that is scaled to fit inside aMaxDestSize
   235  * Returns size for a bitmap that is scaled to fit inside aMaxDestSize
   232  * if aSourceSize > aMaxDestSize. The scaling is done so that aspect ratio of the
   236  * if aSourceSize > aMaxDestSize. The scaling is done so that aspect ratio of the