equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
272 @param aLine Source line number |
272 @param aLine Source line number |
273 @param aPtr The pointer to be tested against NULL value. |
273 @param aPtr The pointer to be tested against NULL value. |
274 |
274 |
275 @internalComponent |
275 @internalComponent |
276 */ |
276 */ |
277 void* Util::LeaveIfNull(const TText* aFile, TInt aLine, void* aPtr) |
277 const void* Util::LeaveIfNull(const TText* aFile, TInt aLine, const void* aPtr) |
278 { |
278 { |
279 if(!aPtr) |
279 if(!aPtr) |
280 { |
280 { |
281 Util::Leave(aFile, aLine, KErrNoMemory); |
281 Util::Leave(aFile, aLine, KErrNoMemory); |
282 } |
282 } |