summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-13 23:17:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-14 07:36:02 +0000
commit74500c21a462ed6555bcbdc2a68cbc632ac68329 (patch)
tree7189aac0092287448c7924aeb12ed101d9c92428 /idl
parentca48cd4c6061650a407358575369c66df72b767e (diff)
ByteString->rtl::OString
Diffstat (limited to 'idl')
-rw-r--r--idl/inc/lex.hxx6
-rw-r--r--idl/source/cmptools/lex.cxx6
-rw-r--r--idl/source/prj/command.cxx8
3 files changed, 10 insertions, 10 deletions
diff --git a/idl/inc/lex.hxx b/idl/inc/lex.hxx
index c3d28f117a8f..293c4d62a1b7 100644
--- a/idl/inc/lex.hxx
+++ b/idl/inc/lex.hxx
@@ -146,11 +146,11 @@ class SvTokenStream
void InitCtor();
- ByteString aBufStr;
+ rtl::OString aBufStr;
int GetNextChar();
int GetFastNextChar()
{
- return aBufStr.GetChar((sal_uInt16)nBufPos++);
+ return aBufStr[nBufPos++];
}
void FillTokenList();
@@ -171,7 +171,7 @@ class SvTokenStream
sal_uInt16 n = 0;
nColumn = 0;
while( n < nBufPos )
- nColumn += aBufStr.GetChar(n++) == '\t' ? nTabSize : 1;
+ nColumn += aBufStr[n++] == '\t' ? nTabSize : 1;
}
}
public:
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;
}
diff --git a/idl/source/prj/command.cxx b/idl/source/prj/command.cxx
index b40e1395bec9..26cf5c0bb4d3 100644
--- a/idl/source/prj/command.cxx
+++ b/idl/source/prj/command.cxx
@@ -196,20 +196,20 @@ static sal_Bool ResponseFile( StringList * pList, int argc, char ** argv )
if( aStm.GetError() != SVSTREAM_OK )
return sal_False;
- ByteString aStr;
+ rtl::OString aStr;
while( aStm.ReadLine( aStr ) )
{
sal_uInt16 n = 0;
sal_uInt16 nPos = 1;
while( n != nPos )
{
- while( aStr.GetChar(n) && isspace( aStr.GetChar(n) ) )
+ while( aStr[n] && isspace( aStr[n] ) )
n++;
nPos = n;
- while( aStr.GetChar(n) && !isspace( aStr.GetChar(n) ) )
+ while( aStr[n] && !isspace( aStr[n] ) )
n++;
if( n != nPos )
- pList->push_back( new String( String::CreateFromAscii( aStr.Copy( nPos, n - nPos ).GetBuffer() ) ) );
+ pList->push_back( new String( rtl::OStringToOUString(aStr.copy(nPos, n - nPos), RTL_TEXTENCODING_ASCII_US) ) );
}
}
}