Skip to content
Snippets Groups Projects
Commit 64904b22 authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

one fix more ;d

parent deb87782
No related merge requests found
...@@ -50,7 +50,7 @@ public: ...@@ -50,7 +50,7 @@ public:
/// Next document in corpus /// Next document in corpus
boost::shared_ptr<Document> next_document() { boost::shared_ptr<Document> next_document() {
static boost::shared_ptr<Document> _empty_doc_ptr; boost::shared_ptr<Document> _empty_doc_ptr;
if (!this->set_) { if (!this->set_) {
if (this->documents_.size() == 0) { if (this->documents_.size() == 0) {
return _empty_doc_ptr; return _empty_doc_ptr;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment