From ef513fd4b049b214a03fbe6e62a5ea43680a7a9b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 26 May 2017 10:58:42 +0200 Subject: remove unnecessary use of OString::getStr Change-Id: I0490efedf459190521f4339854b3394d57765fdb Reviewed-on: https://gerrit.libreoffice.org/38058 Tested-by: Jenkins Reviewed-by: Noel Grandin --- i18nutil/source/utility/paper.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'i18nutil') diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index 3a6e98a28d4f..657496abcc44 100644 --- a/i18nutil/source/utility/paper.cxx +++ b/i18nutil/source/utility/paper.cxx @@ -271,8 +271,7 @@ PaperInfo PaperInfo::getSystemDefaultPaper() if (ePaper == PAPER_USER) { - bHalve = !rtl_str_shortenedCompareIgnoreAsciiCase_WithLength( - aPaper.getStr(), aPaper.getLength(), "half", 4, 4); + bHalve = !aPaper.startsWith("half"); if (bHalve) aPaper = aPaper.copy(4); ePaper = PaperInfo::fromPSName(aPaper); -- cgit