summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-01 12:24:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-02 07:48:21 +0000
commitc0f9bdd3e644e3ebf690aff9eb1aeec4f16dbf27 (patch)
treee5bb6d31a17587452dde579803286f68ffc73672 /svtools
parent52360bf8dd567598593cb212ac85f0c919315618 (diff)
unnecessary use of OUStringBuffer in throwing exceptions
Change-Id: Iec1473264426f19c31e72260dfce9494389e474f Reviewed-on: https://gerrit.libreoffice.org/33788 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/uno/wizard/unowizard.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx
index d4977cfe456d..d585739f1573 100644
--- a/svtools/source/uno/wizard/unowizard.cxx
+++ b/svtools/source/uno/wizard/unowizard.cxx
@@ -195,12 +195,9 @@ namespace {
{
if ( i_rPaths[i][j] <= nPreviousPageID )
{
- OStringBuffer message;
- message.append( "Path " );
- message.append( i );
- message.append( ": invalid page ID sequence - each page ID must be greater than the previous one." );
throw IllegalArgumentException(
- OStringToOUString( message.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US ),
+ "Path " + OUString::number(i)
+ + ": invalid page ID sequence - each page ID must be greater than the previous one.",
i_rContext, 2 );
}
nPreviousPageID = i_rPaths[i][j];