diff options
Diffstat (limited to 'xmlhelp/source/cxxhelp/qe')
-rw-r--r-- | xmlhelp/source/cxxhelp/qe/DocGenerator.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/qe/Search.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/xmlhelp/source/cxxhelp/qe/DocGenerator.cxx b/xmlhelp/source/cxxhelp/qe/DocGenerator.cxx index cc44fc1edd9d..b3aea87db3d2 100644 --- a/xmlhelp/source/cxxhelp/qe/DocGenerator.cxx +++ b/xmlhelp/source/cxxhelp/qe/DocGenerator.cxx @@ -473,6 +473,7 @@ bool GeneratorHeap::next( std::vector< RoleFiller* >& array ) throw( xmlsearch:: if( heapSize_ > 0 ) { if( ! heap_[0]->next() ) // no more + { if( heapSize_ > 1) { delete heap_[0]; @@ -484,6 +485,7 @@ bool GeneratorHeap::next( std::vector< RoleFiller* >& array ) throw( xmlsearch:: heapSize_ = 0; return false; } + } heapify(0); heap_[0]->generateFillers( array ); return true; diff --git a/xmlhelp/source/cxxhelp/qe/Search.cxx b/xmlhelp/source/cxxhelp/qe/Search.cxx index b53746bf1916..493205661d64 100644 --- a/xmlhelp/source/cxxhelp/qe/Search.cxx +++ b/xmlhelp/source/cxxhelp/qe/Search.cxx @@ -347,6 +347,7 @@ void Search::startSearch() for (j = i + 1; j < free2_; j++ ) { if( conceptData_[j].is() ) + { if( conceptData_[i]->cEquals( conceptData_[j].get() ) ) { conceptData_[i]->addLast( conceptData_[j].get() ); @@ -354,6 +355,7 @@ void Search::startSearch() } else i = j; + } } } |