From b50a27dd7a136a48668074e3126806d2e8c147cc Mon Sep 17 00:00:00 2001
From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Fri, 16 Apr 2010 08:28:35 +0000
Subject: [PATCH] constify AlignmentHandle::operator[]

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2024 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 modules/seq/base/src/alignment_handle.cc | 2 +-
 modules/seq/base/src/alignment_handle.hh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/seq/base/src/alignment_handle.cc b/modules/seq/base/src/alignment_handle.cc
index cc0f06788..48bb07af5 100644
--- a/modules/seq/base/src/alignment_handle.cc
+++ b/modules/seq/base/src/alignment_handle.cc
@@ -226,7 +226,7 @@ AlignedColumnIterator AlignmentHandle::end() const
   return AlignedColumnIterator(*this, this->GetLength(), this->GetLength());
 }
 
-AlignedColumn AlignmentHandle::operator[](int index)
+AlignedColumn AlignmentHandle::operator[](int index) const
 {
   return AlignedColumn(*this, index);
 }
diff --git a/modules/seq/base/src/alignment_handle.hh b/modules/seq/base/src/alignment_handle.hh
index 8523fb1d4..7e6ba8567 100644
--- a/modules/seq/base/src/alignment_handle.hh
+++ b/modules/seq/base/src/alignment_handle.hh
@@ -135,7 +135,7 @@ public:
   /// This method does not throw any exception. Upon accessing methods of the 
   /// aligned column, exceptions might be thrown when the index is out of 
   /// bounds.
-  AlignedColumn operator[](int index);
+  AlignedColumn operator[](int index) const;
   
   AlignmentHandle(const impl::SequenceListImplPtr& impl);  
   
-- 
GitLab