diff options
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/wizard/unowizard.cxx | 7 |
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]; |