diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-02-05 08:48:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-02-05 08:48:32 +0100 |
commit | a8f3ad1ac13f12eac7be488cd4bc425c3c09f3ed (patch) | |
tree | 612ede0420c3761613b9be8ead6b4b10bf553e19 | |
parent | d932eb95f4009a34af85b063df11aac83368950a (diff) |
Avoid ambiguities among operator[] overloads
Change-Id: Ide7446e1aebe698277b13cc7eeb39efe16af3ec2
-rw-r--r-- | sc/inc/colcontainer.hxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sc/inc/colcontainer.hxx b/sc/inc/colcontainer.hxx index 2ce35eb8bd9a..4b1c14294a2a 100644 --- a/sc/inc/colcontainer.hxx +++ b/sc/inc/colcontainer.hxx @@ -46,31 +46,11 @@ public: return *aCols[nIndex]; } - const ScColumn& operator[] ( SCCOL nIndex ) const - { - return ( *this )[ static_cast<const size_t>( nIndex ) ]; - } - - const ScColumn& operator[] ( int nIndex ) const - { - return ( *this )[ static_cast<const size_t>( nIndex ) ]; - } - ScColumn& operator[] ( const size_t nIndex ) { return *aCols[nIndex]; } - ScColumn& operator[] ( SCCOL nIndex ) - { - return ( *this )[ static_cast<const size_t>( nIndex ) ]; - } - - ScColumn& operator[] ( int nIndex ) - { - return ( *this )[ static_cast<const size_t>( nIndex ) ]; - } - SCCOL size() const { return static_cast<SCCOL>( aCols.size() ); |