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

New commits:
commit 9417b1132a7c4147ec904e041925ffbd05d67e62
Author: Stephan Bergmann <sberg...@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);
                 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to