summaryrefslogtreecommitdiff
path: root/cosv/inc
diff options
context:
space:
mode:
authorNikolai Pretzell <np@openoffice.org>2002-11-18 10:49:42 +0000
committerNikolai Pretzell <np@openoffice.org>2002-11-18 10:49:42 +0000
commit51f9a6378065d0779e48d73e2de46371eec0b12e (patch)
tree19c71359145a2f78c873147afb0fb09c5e3b9416 /cosv/inc
parent04b6eccc97e4de69cc3b394dc512aeae99064567 (diff)
replace ambigious csv::String::operator[] by function csv::char_at()
Diffstat (limited to 'cosv/inc')
-rw-r--r--cosv/inc/cosv/string.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/cosv/inc/cosv/string.hxx b/cosv/inc/cosv/string.hxx
index 00568a85ef76..76a2becaa4e9 100644
--- a/cosv/inc/cosv/string.hxx
+++ b/cosv/inc/cosv/string.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: string.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: np $ $Date: 2002-11-01 12:18:50 $
+ * last change: $Author: np $ $Date: 2002-11-18 11:49:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -138,9 +138,6 @@ class String
operator const char * () const;
- const char & operator[](
- position_type i_nPosition ) const;
-
bool operator==(
const self & i_rStr ) const;
bool operator!=(
@@ -193,6 +190,9 @@ class String
size_type size() const;
size_type length() const;
+ const char & char_at(
+ position_type i_nPosition ) const;
+
const_iterator begin() const;
/// This is inefficient, so shouldn't be used within loops.
@@ -408,7 +408,7 @@ String::Str() const
inline const char &
-String::operator[]( position_type i_nPosition ) const
+String::char_at( position_type i_nPosition ) const
{ if ( i_nPosition < Str().Size() )
return Str().Data()[i_nPosition];
return Nulch_();