equal
deleted
inserted
replaced
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])); |