qcpix/src/platform/s60/src/qcpixsearcherprivate.cpp
changeset 3 ae3f1779f6da
parent 1 6f2c1c46032b
equal deleted inserted replaced
2:6c1a2771f4b7 3:ae3f1779f6da
    33     }
    33     }
    34 
    34 
    35 void QCPixSearcherPrivate::Construct( QString aDefaultSearchField )
    35 void QCPixSearcherPrivate::Construct( QString aDefaultSearchField )
    36     {
    36     {
    37     qt_symbian_throwIfError( iSearchSession.Connect() );//throw exception on error.
    37     qt_symbian_throwIfError( iSearchSession.Connect() );//throw exception on error.
       
    38     QT_TRAP_THROWING(
    38     TBuf<KMaxStringLength> defaultSearchField( aDefaultSearchField.utf16() );
    39     TBuf<KMaxStringLength> defaultSearchField( aDefaultSearchField.utf16() );
    39     QT_TRAP_THROWING( iSearcher = CCPixSearcher::NewL( iSearchSession, defaultSearchField  ) );
    40     iSearcher = CCPixSearcher::NewL( iSearchSession, defaultSearchField  ) 
       
    41     ); //end of QT_TRAP_THROWING
    40     }
    42     }
    41 
    43 
    42 QCPixSearcherPrivate::~QCPixSearcherPrivate()
    44 QCPixSearcherPrivate::~QCPixSearcherPrivate()
    43     {
    45     {
    44     delete iSearcher;
    46     delete iSearcher;