epoc32/include/mmf/server/mmfhwdevice.inl
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2002-2009 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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     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.symbianfoundation.org/legal/licencesv10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    25 
    25 
    26 @param dll Implementation .dll
    26 @param dll Implementation .dll
    27 
    27 
    28 @return an instantiated CMMFHwDevice derived object from a DLL.
    28 @return an instantiated CMMFHwDevice derived object from a DLL.
    29 */
    29 */
       
    30 // modification to pass by reference would cause a BC break
       
    31 // coverity[pass_by_value]
    30 inline CMMFHwDevice* CMMFHwDevice::NewL(TFileName dll)
    32 inline CMMFHwDevice* CMMFHwDevice::NewL(TFileName dll)
    31 	{
    33 	{
    32 	RLibrary library;
    34 	RLibrary library;
    33 	User::LeaveIfError(library.Load(dll));
    35 	User::LeaveIfError(library.Load(dll));
    34 	TLibraryFunction entry=library.Lookup(2); // 1 ponits to implementation table
    36 	TLibraryFunction entry=library.Lookup(2); // 1 ponits to implementation table