@@ -386,7 +386,7 @@ template <class T=double> struct StitchupGraph {
386
386
} catch (const char *str) {
387
387
std::cerr << " Writing newick file failed: " << str << std::endl;
388
388
return false ;
389
- } catch (std::string &str) {
389
+ } catch (const std::string &str) {
390
390
std::cerr << " Writing newick file failed: " << str << std::endl;
391
391
return false ;
392
392
}
@@ -488,7 +488,7 @@ template < class T=double> class StitchupMatrix: public SquareMatrix<T> {
488
488
virtual std::string getAlgorithmName () const {
489
489
return " STITCHUP" ;
490
490
}
491
- virtual void addCluster (const std::string &name) {
491
+ virtual void addCluster (const std::string &name) override {
492
492
graph.addLeaf (name);
493
493
}
494
494
virtual bool loadMatrixFromFile (const std::string &distanceMatrixFilePath) {
@@ -561,8 +561,6 @@ template < class T=double> class StitchupMatrix: public SquareMatrix<T> {
561
561
double row_count_triangle = 0.5 *(double )row_count*(double )(row_count+1 );
562
562
const char * task_name = silent ? " " : " Assembling Stitch-up Graph" ;
563
563
progress_display progress (row_count_triangle, task_name );
564
- #else
565
- double progress = 0.0 ;
566
564
#endif
567
565
for (intptr_t join = 0 ; join + 1 < row_count; ++join) {
568
566
LengthSortedStitch<T> shortest;
@@ -584,8 +582,9 @@ template < class T=double> class StitchupMatrix: public SquareMatrix<T> {
584
582
graph.removeThroughThroughNodes ();
585
583
return true ;
586
584
}
587
- virtual bool calculateRMSOfTMinusD (const double * matrix,
588
- intptr_t rank, double & rms) {
585
+
586
+ virtual bool calculateRMSOfTMinusD (const double * matrix,
587
+ intptr_t rank, double & rms) {
589
588
return false ; // not supported
590
589
}
591
590
};
0 commit comments