summaryrefslogtreecommitdiff
path: root/i18nutil/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-05-30 09:14:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-05-30 09:14:45 +0100
commit3f9fbca3011fe4f8fd6d34fa6fe4644dbaf3d3a4 (patch)
tree3b0df250b073b855c356b4f6719b8b40520a11f3 /i18nutil/source
parentb94f66ca986dd4405e227c031f8e039de07dab52 (diff)
coverity#1411565 'Constant' variable guards dead code
on incomplete fix of commit 922e935c8812b1c1f94347bdbd7cdf277a75644e Date: Mon May 29 17:08:06 2017 +0200 i18nutil: fix invalid string copy that prevents startup for commit ef513fd4b049b214a03fbe6e62a5ea43680a7a9b Date: Fri May 26 10:58:42 2017 +0200 remove unnecessary use of OString::getStr Change-Id: I6cc56bae5e4a5c2fb235663bc6676cdea02b9701
Diffstat (limited to 'i18nutil/source')
-rw-r--r--i18nutil/source/utility/paper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx
index 7e250024ebe4..d7c55a76eb1a 100644
--- a/i18nutil/source/utility/paper.cxx
+++ b/i18nutil/source/utility/paper.cxx
@@ -271,7 +271,8 @@ PaperInfo PaperInfo::getSystemDefaultPaper()
if (ePaper == PAPER_USER)
{
- if (aPaper.startsWith("half"))
+ bHalve = aPaper.startsWith("half");
+ if (bHalve)
{
aPaper = aPaper.copy(4);
}