diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2012-12-26 14:44:52 -0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-12-27 09:46:12 +0000 |
commit | 47139512bc5df08704fd9df362c7de86b99fe7e8 (patch) | |
tree | 2f7d04e633ecb522b81c8397b94419336b36a296 /basctl | |
parent | 0abaaf092451f1450c3a939f8872fdd27437b8d5 (diff) |
fdo#57950: remove consecutive append in basctl with StringBuffer
Change-Id: I43464dd702c6b4a63df39b6a4b35bec63712d5e6
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/1486
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index fa9d50ea7de4..c6c354508435 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -134,13 +134,8 @@ void lcl_PrintHeader( Printer* pPrinter, sal_uInt16 nPages, sal_uInt16 nCurPage, if( bOutput ) { - OUStringBuffer aPageStr; - aPageStr.appendAscii( " [" ); - aPageStr.append(IDE_RESSTR(RID_STR_PAGE)); - aPageStr.append(' '); - aPageStr.append( nCurPage ); - aPageStr.append(']'); - pPrinter->DrawText( aPos, aPageStr.makeStringAndClear() ); + OUString aPageStr = " [" + IDE_RESSTR(RID_STR_PAGE) + " " + OUString::valueOf( nCurPage ) + "]"; + pPrinter->DrawText( aPos, aPageStr ); } } |