From d9a14ac04a9da82f7d511f0fba9ae0bf4797614d Mon Sep 17 00:00:00 2001 From: derek Date: Wed, 4 Apr 2012 13:17:21 -0400 Subject: [PATCH] Fixed: invalidated by-name sort order in some cases * due to (unintentional) member variable stored as reference --- src/api/algorithms/Sort.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/algorithms/Sort.h b/src/api/algorithms/Sort.h index 92cb165..32902e1 100644 --- a/src/api/algorithms/Sort.h +++ b/src/api/algorithms/Sort.h @@ -3,7 +3,7 @@ // Marth Lab, Department of Biology, Boston College // All rights reserved. // --------------------------------------------------------------------------- -// Last modified: 10 October 2011 (DB) +// Last modified: 4 April 2012 (DB) // --------------------------------------------------------------------------- // Provides sorting functionality. // *************************************************************************** @@ -85,7 +85,7 @@ struct API_EXPORT Sort { // data members private: - const Sort::Order& m_order; + const Sort::Order m_order; }; /*! \struct BamTools::Algorithms::Sort::ByPosition @@ -131,7 +131,7 @@ struct API_EXPORT Sort { // data members private: - Sort::Order m_order; + const Sort::Order m_order; }; /*! \struct BamTools::Algorithms::Sort::ByTag @@ -178,8 +178,8 @@ struct API_EXPORT Sort { // data members private: - std::string m_tag; - Sort::Order m_order; + const std::string m_tag; + const Sort::Order m_order; }; /*! \struct BamTools::Algorithms::Sort::Unsorted -- 2.39.2