summaryrefslogtreecommitdiff
path: root/i18nutil
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-07 14:01:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-07 14:02:41 +0200
commit9417b1132a7c4147ec904e041925ffbd05d67e62 (patch)
treea28a240d3c75cb57c8321ccc7121b5a40a8e87da /i18nutil
parenta83740ebcf91649ff2611582b124bf2d0ce2e133 (diff)
Make use of OUString::startsWith rest parameter
Change-Id: Ic743bfbf65533bd317e29c8e1482306603b65b0e
Diffstat (limited to 'i18nutil')
-rw-r--r--i18nutil/source/utility/paper.cxx6
1 files changed, 1 insertions, 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);
}