summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-05 16:53:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-05 16:54:10 +0100
commit0a1c6d4554cdab448249e1c574af6a90d5e46e6e (patch)
tree2530fef77ef1f624ccfe4e492f54c072d170d05c /cui
parent846d340d6a75110a901ae4922a261ca83a8a4dfa (diff)
Extend loplugin:passstuffbyref to handle lambdas
...even if it is known to be dangerous Change-Id: Ied96284e33b966bf072d0961054479ec7f891dea
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optaboutconfig.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index 3b2b0f9113fc..78412052212f 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -670,7 +670,7 @@ IMPL_LINK_NOARG( CuiAboutConfigTabPage, StandardHdl_Impl )
m_pPrefBox->SetEntryText( sDialogValue, pEntry, 3 );
//update m_prefBoxEntries
SvTreeListEntries::iterator it = std::find_if(m_prefBoxEntries.begin(), m_prefBoxEntries.end(),
- [sPropertyPath, sPropertyName](SvTreeListEntry &entry) -> bool
+ [&sPropertyPath, &sPropertyName](SvTreeListEntry &entry) -> bool
{
return static_cast< SvLBoxString* >( entry.GetItem(1) )->GetText().equals( sPropertyPath ) &&
static_cast< SvLBoxString* >( entry.GetItem(2) )->GetText().equals( sPropertyName );