summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-09-20 20:54:52 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-09-20 20:54:52 +0200
commitfb4bf4580f6244d044a80f4de501753cc2b4be70 (patch)
tree33f3333219dedab47fa6ac99ac68769bd6035f15 /svx
parent2ff09b059a096df109a3be3778e77dde9a4458cf (diff)
loplugin:stringconstant
Change-Id: I5337566bad2a63de4ead73022bfafba7f050059a
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdotext.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index aa06f1c77a68..f8362c7c9b1b 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -2010,7 +2010,7 @@ void ImpUpdateChainLinks(SdrTextObj *pTextObj, OUString const& aNextLinkName)
// XXX: Current implementation constraints text boxes to be on the same page
// No next link
- if (aNextLinkName == "") {
+ if (aNextLinkName.isEmpty()) {
pTextObj->SetNextLinkInChain(NULL);
return;
}
@@ -2034,14 +2034,14 @@ bool SdrTextObj::IsChainable() const
OUString aNextLinkName = static_cast<const SfxStringItem&>(rSet.Get(SDRATTR_TEXT_CHAINNEXTNAME)).GetValue();
// Update links if any inconsistency is found
- bool bNextLinkUnsetYet = (aNextLinkName != "") && !mpNextInChain;
+ bool bNextLinkUnsetYet = !aNextLinkName.isEmpty() && !mpNextInChain;
bool bInconsistentNextLink = mpNextInChain && mpNextInChain->GetName() != aNextLinkName;
// if the link is not set despite there should be one OR if it has changed
if (bNextLinkUnsetYet || bInconsistentNextLink) {
ImpUpdateChainLinks(const_cast<SdrTextObj *>(this), aNextLinkName);
}
- return aNextLinkName != ""; // XXX: Should we also check for GetNilChainingEvent? (see old code below)
+ return !aNextLinkName.isEmpty(); // XXX: Should we also check for GetNilChainingEvent? (see old code below)
/*
// Check that no overflow is going on