applayerprotocols/wappushsupport/WbxmlLib/WbToken.cpp
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 1997-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 "WbToken.h"
       
    17 
       
    18 //
       
    19 // class CWbxmlToken : public CBase
       
    20 // Helper for bytecode to ascii converter
       
    21 //
       
    22 
       
    23 CWbxmlToken::CWbxmlToken()
       
    24 {
       
    25 	__DECLARE_NAME(_S("CWbxmlToken"));
       
    26 }
       
    27 
       
    28 CWbxmlToken::~CWbxmlToken()
       
    29 {
       
    30 	delete iBuf;
       
    31 }
       
    32 
       
    33 void CWbxmlToken::SetTextL(const HBufC8& aText)
       
    34 {
       
    35 	if (iBuf)
       
    36 	{
       
    37 		delete iBuf;
       
    38 		iBuf = NULL;
       
    39 	}
       
    40 
       
    41 	iBuf = aText.AllocL();
       
    42 }
       
    43 
       
    44 //
       
    45 // End of file
       
    46 //