diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-20 15:25:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-20 16:54:55 +0100 |
commit | 0344e07dd7b6929e88141a384fd5c46b93c1c61b (patch) | |
tree | 49ecd98572fa53a3b65f38828e618ef01283a493 /rsc/source | |
parent | d2dff83fc33da53fb0e49e45dd10d892ae5a3309 (diff) |
ByteString->rtl::OString[Buffer]
Diffstat (limited to 'rsc/source')
-rw-r--r-- | rsc/source/parser/rscyacc.y | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/rsc/source/parser/rscyacc.y b/rsc/source/parser/rscyacc.y index a225b5fe7c80..7a7bb327871c 100644 --- a/rsc/source/parser/rscyacc.y +++ b/rsc/source/parser/rscyacc.y @@ -33,6 +33,7 @@ #include <ctype.h> #include <string.h> +#include <rtl/strbuf.hxx> #include <tools/rc.h> #include <rscerror.h> #include <rsctools.hxx> @@ -149,11 +150,11 @@ sal_Bool DoClassHeader( RSCHEADER * pHeader, sal_Bool bMember ) if( !pCopyObj ) { - ByteString aMsg( pHS->getString( aCopyInst.pClass->GetId() ) ); - aMsg += ' '; - aMsg += aName2.GetName(); + rtl::OStringBuffer aMsg( pHS->getString( aCopyInst.pClass->GetId() ) ); + aMsg.append(' '); + aMsg.append(aName2.GetName()); pTC->pEH->Error( ERR_NOCOPYOBJ, pHeader->pClass, aName1, - aMsg.GetBuffer() ); + aMsg.getStr() ); } else aCopyInst.pData = pCopyObj->GetRscObj(); |