diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-13 23:17:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-14 07:36:02 +0000 |
commit | 74500c21a462ed6555bcbdc2a68cbc632ac68329 (patch) | |
tree | 7189aac0092287448c7924aeb12ed101d9c92428 /idl/source/cmptools | |
parent | ca48cd4c6061650a407358575369c66df72b767e (diff) |
ByteString->rtl::OString
Diffstat (limited to 'idl/source/cmptools')
-rw-r--r-- | idl/source/cmptools/lex.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx index fcb33fa47859..582170ecc609 100644 --- a/idl/source/cmptools/lex.cxx +++ b/idl/source/cmptools/lex.cxx @@ -165,7 +165,7 @@ void SvTokenStream::FillTokenList() int SvTokenStream::GetNextChar() { int nChar; - if( (int)aBufStr.Len() < nBufPos ) + if( aBufStr.getLength() < nBufPos ) { if( rInStream.ReadLine( aBufStr ) ) { @@ -175,13 +175,13 @@ int SvTokenStream::GetNextChar() } else { - aBufStr.Erase(); + aBufStr = rtl::OString(); nColumn = 0; nBufPos = 0; return '\0'; } } - nChar = aBufStr.GetChar( (sal_uInt16)nBufPos++ ); + nChar = aBufStr[nBufPos++]; nColumn += nChar == '\t' ? nTabSize : 1; return nChar; } |