equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
14 * Description: Implementation of the DWlanLogicalDevice class. |
14 * Description: Implementation of the DWlanLogicalDevice class. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 18 % |
19 * %version: 19 % |
20 */ |
20 */ |
21 |
21 |
22 #include "WlLddWlanLddConfig.h" |
22 #include "WlLddWlanLddConfig.h" |
23 #include "WlanLogicalDevice.h" |
23 #include "WlanLogicalDevice.h" |
24 #include "WlanLogicalChannel.h" |
24 #include "WlanLogicalChannel.h" |
42 return new DWlanLogicalDevice; |
42 return new DWlanLogicalDevice; |
43 |
43 |
44 #else |
44 #else |
45 DWlanLogicalDevice* logicalDevice( new DWlanLogicalDevice ); |
45 DWlanLogicalDevice* logicalDevice( new DWlanLogicalDevice ); |
46 |
46 |
47 if ( !(logicalDevice->IsValid()) ) |
47 if ( logicalDevice && !(logicalDevice->IsValid()) ) |
48 { |
48 { |
49 // something went wrong |
49 // something went wrong |
50 delete logicalDevice; |
50 delete logicalDevice; |
51 logicalDevice = NULL; |
51 logicalDevice = NULL; |
52 } |
52 } |