summaryrefslogtreecommitdiff
path: root/idl/source
diff options
context:
space:
mode:
Diffstat (limited to 'idl/source')
-rw-r--r--idl/source/prj/database.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx
index d001ee4a4386..2b45e6e157e2 100644
--- a/idl/source/prj/database.cxx
+++ b/idl/source/prj/database.cxx
@@ -220,16 +220,16 @@ bool SvIdlDataBase::ReadIdFile( const OString& rOFileName )
else if( rTok.Is( SvHash_include() ) )
{
rTok = aTokStm.GetToken_Next();
- OStringBuffer aName;
+ OStringBuffer aNameBuf;
if( rTok.IsString() )
- aName.append(rTok.GetString());
+ aNameBuf.append(rTok.GetString());
else if( rTok.IsChar() && rTok.GetChar() == '<' )
{
rTok = aTokStm.GetToken_Next();
while( !rTok.IsEof()
&& !(rTok.IsChar() && rTok.GetChar() == '>') )
{
- aName.append(rTok.GetTokenAsString());
+ aNameBuf.append(rTok.GetTokenAsString());
rTok = aTokStm.GetToken_Next();
}
if( rTok.IsEof() )
@@ -237,7 +237,8 @@ bool SvIdlDataBase::ReadIdFile( const OString& rOFileName )
throw SvParseException("unexpected eof in #include", rTok);
}
}
- if (!ReadIdFile(aName.toString()))
+ OString aName(aNameBuf.makeStringAndClear());
+ if (!ReadIdFile(aName))
{
throw SvParseException("cannot read file: " + aName, rTok);
}