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

Stephan Bergmann sbergman at redhat.com
Fri Mar 17 15:41:10 UTC 2017


 sw/source/ui/dbui/createaddresslistdialog.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4d9e28be5c3cfd4cfb32ba0d15400285d661d423
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Mar 17 16:40:37 2017 +0100

    There appears to be no need to create a copy here
    
    Change-Id: Ibc0694150aff56c8fadf08d61e350933b245db46

diff --git a/sw/source/ui/dbui/createaddresslistdialog.cxx b/sw/source/ui/dbui/createaddresslistdialog.cxx
index 7c87d4875fd6..7b831f8eda07 100644
--- a/sw/source/ui/dbui/createaddresslistdialog.cxx
+++ b/sw/source/ui/dbui/createaddresslistdialog.cxx
@@ -714,7 +714,7 @@ void SwCreateAddressListDialog::Find(const OUString& rSearch, sal_Int32 nColumn)
     {
         for(nPos = nStart; nPos < nEnd; ++nPos)
         {
-            std::vector< OUString> aData = m_pCSVData->aDBData[nPos];
+            std::vector< OUString> const & aData = m_pCSVData->aDBData[nPos];
             if(nColumn >=0)
                 bFound = -1 != aData[(sal_uInt32)nColumn].toAsciiLowerCase().indexOf(sSearch);
             else


More information about the Libreoffice-commits mailing list