equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "SqlSrvSecurityMap.h" |
|
17 #include "SqlSecurityImpl.h" |
|
18 |
|
19 /** |
|
20 {const TUint8*, const CSqlSecurityPolicy*} pair destructor. |
|
21 Used by RSqlMap class. |
|
22 |
|
23 @see RSqlMap |
|
24 */ |
|
25 void TSqlSecurityDestructor::Destroy(const TUint8*& aKey, const CSqlSecurityPolicy*& aData) |
|
26 { |
|
27 delete const_cast <CSqlSecurityPolicy*&> (aData); |
|
28 delete [] const_cast <TUint8*&> (aKey); |
|
29 } |
|
30 |
|
31 /** |
|
32 {const TUint8*, const TUint8*} pair destructor. |
|
33 Used by RSqlMap class. |
|
34 |
|
35 @see RSqlMap |
|
36 */ |
|
37 void TSqlAttachDbDestructor::Destroy(const TUint8*& aKey, const TUint8*& aData) |
|
38 { |
|
39 delete [] const_cast <TUint8*&> (aData); |
|
40 delete [] const_cast <TUint8*&> (aKey); |
|
41 } |