[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Wed Jan 20 01:03:14 PST 2016


 sw/source/core/unocore/unostyle.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 12181e6e2f9be553b93371432b79a5f00aa076ea
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jan 20 10:02:46 2016 +0100

    loplugin:passstuffbyref
    
    Change-Id: Ic4d2e018f193525be00da03fc14e147d6b68257f

diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 2e6ef30..3116838 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)


More information about the Libreoffice-commits mailing list