[Libreoffice-commits] core.git: sc/inc
Stephan Bergmann
sbergman at redhat.com
Fri Feb 5 07:48:58 UTC 2016
sc/inc/colcontainer.hxx | 20 --------------------
1 file changed, 20 deletions(-)
New commits:
commit a8f3ad1ac13f12eac7be488cd4bc425c3c09f3ed
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Feb 5 08:48:32 2016 +0100
Avoid ambiguities among operator[] overloads
Change-Id: Ide7446e1aebe698277b13cc7eeb39efe16af3ec2
diff --git a/sc/inc/colcontainer.hxx b/sc/inc/colcontainer.hxx
index 2ce35eb..4b1c142 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() );
More information about the Libreoffice-commits
mailing list