equal
deleted
inserted
replaced
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 |
|
226 return TPtr16(reinterpret_cast<TText16*>(const_cast<TText8*>(ptr8.Ptr())), |
225 return TPtr16(reinterpret_cast<TText16*>(const_cast<TText8*>(ptr8.Ptr())), |
227 length, |
226 length, |
228 length); //lint !e826 |
227 length); //lint !e826 |
229 #else |
|
230 return TPtr8(const_cast<TText8*>(ptr8.Ptr()), ptr8.Length(), ptr8.Length()); |
|
231 #endif |
|
232 } |
228 } |
233 |
229 |
234 /* |
230 /* |
235 * Returns size for a bitmap that is scaled to fit inside aMaxDestSize |
231 * Returns size for a bitmap that is scaled to fit inside aMaxDestSize |
236 * if aSourceSize > aMaxDestSize. The scaling is done so that aspect ratio of the |
232 * if aSourceSize > aMaxDestSize. The scaling is done so that aspect ratio of the |