[Libreoffice-commits] core.git: i18nutil/source

Stephan Bergmann sbergman at redhat.com
Wed Jun 7 12:03:01 UTC 2017


 i18nutil/source/utility/paper.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit 9417b1132a7c4147ec904e041925ffbd05d67e62
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jun 7 14:01:59 2017 +0200

    Make use of OUString::startsWith rest parameter
    
    Change-Id: Ic743bfbf65533bd317e29c8e1482306603b65b0e

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);
                 }
 


More information about the Libreoffice-commits mailing list