From 9417b1132a7c4147ec904e041925ffbd05d67e62 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 7 Jun 2017 14:01:59 +0200 Subject: Make use of OUString::startsWith rest parameter Change-Id: Ic743bfbf65533bd317e29c8e1482306603b65b0e --- i18nutil/source/utility/paper.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index d7c55a76eb1a..9d18618fd3a3 100644 --- a/i18nutil/source/utility/paper.cxx +++ b/i18nutil/source/utility/paper.cxx @@ -271,11 +271,7 @@ PaperInfo PaperInfo::getSystemDefaultPaper() if (ePaper == PAPER_USER) { - bHalve = aPaper.startsWith("half"); - if (bHalve) - { - aPaper = aPaper.copy(4); - } + bHalve = aPaper.startsWith("half", &aPaper); ePaper = PaperInfo::fromPSName(aPaper); } -- cgit