Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
bysz71 committed Jun 13, 2015
1 parent 3340480 commit 8419b83
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ch17/ex17.3/textquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ TextQuery::TextQuery(std::ifstream & is) : file(new std::vector<std::string>)
while(lineSteam >> word)
{
//! fetch the smart pointer which is null when the word first time seen
std::shared_ptr<
std::set<index_Tp>>& sp_lineIndex = wm[word];
std::shared_ptr<std::set<index_Tp>>& sp_lineIndex = wm[word];

//! if null, allcate a new set to contain line indices
if(!sp_lineIndex)
Expand Down Expand Up @@ -74,4 +73,3 @@ result_tuple TextQuery::query_return_tuple(const std::string &sought)
else
return result_tuple(sought, iter->second, file);
}

0 comments on commit 8419b83

Please sign in to comment.