Kaydet (Commit) 9417b113 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Make use of OUString::startsWith rest parameter

Change-Id: Ic743bfbf65533bd317e29c8e1482306603b65b0e
üst a83740eb
...@@ -271,11 +271,7 @@ PaperInfo PaperInfo::getSystemDefaultPaper() ...@@ -271,11 +271,7 @@ PaperInfo PaperInfo::getSystemDefaultPaper()
if (ePaper == PAPER_USER) if (ePaper == PAPER_USER)
{ {
bHalve = aPaper.startsWith("half"); bHalve = aPaper.startsWith("half", &aPaper);
if (bHalve)
{
aPaper = aPaper.copy(4);
}
ePaper = PaperInfo::fromPSName(aPaper); ePaper = PaperInfo::fromPSName(aPaper);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment