predictivesearch/PcsUtils/src/CPsQuery.cpp
branchRCL_3
changeset 39 a6539d1e8e43
parent 15 e8e3147d53eb
child 64 c1e8ba0c2b16
equal deleted inserted replaced
35:4ae315f230bc 39:a6539d1e8e43
    92 // CPsQuery::GetItemAtL
    92 // CPsQuery::GetItemAtL
    93 // Returns the query item at the specified index
    93 // Returns the query item at the specified index
    94 // ----------------------------------------------------------------------------
    94 // ----------------------------------------------------------------------------
    95 EXPORT_C CPsQueryItem& CPsQuery:: GetItemAtL(TInt aIndex)
    95 EXPORT_C CPsQueryItem& CPsQuery:: GetItemAtL(TInt aIndex)
    96 {    
    96 {    
    97 	if ( aIndex < 0 && aIndex >= iSearchQuery.Count()) 
    97 	if ( aIndex < 0 || aIndex >= iSearchQuery.Count()) 
    98 	{
    98 	{
    99 	    User::Leave(KErrArgument);		
    99 	    User::Leave(KErrArgument);		
   100 	}
   100 	}
   101 	
   101 	
   102 	return (*(iSearchQuery[aIndex]));
   102 	return (*(iSearchQuery[aIndex]));