summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-01-20 10:02:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-01-20 10:02:46 +0100
commit12181e6e2f9be553b93371432b79a5f00aa076ea (patch)
tree01514a6e0c748f5a6a4878683a483c08bf494d8d /sw
parent3e58329130038fe5f53ce645b738b40df7507bfc (diff)
loplugin:passstuffbyref
Change-Id: Ic4d2e018f193525be00da03fc14e147d6b68257f
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unostyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 2e6ef30f727a..31168388f274 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -1568,7 +1568,7 @@ void SwXStyle::SetPropertyValue<FN_UNO_NUM_RULES>(const SfxItemPropertySimpleEnt
&& (!pFormat->GetCharFormat() || pFormat->GetCharFormat()->GetName() != pCharName))
{
auto pCharFormatIt(std::find_if(m_pDoc->GetCharFormats()->begin(), m_pDoc->GetCharFormats()->end(),
- [pCharName] (SwCharFormat* pF) { return pF->GetName() == pCharName; }));
+ [&pCharName] (SwCharFormat* pF) { return pF->GetName() == pCharName; }));
if(pCharFormatIt != m_pDoc->GetCharFormats()->end())
aFormat.SetCharFormat(*pCharFormatIt);
else if(m_pBasePool)