diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-11 13:49:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-11 20:11:23 +0100 |
commit | 69089f1737a825c81d958785972bf15e9c340d91 (patch) | |
tree | 3fed73b30e4ab4cb27ec8169e37e35217a710180 /linguistic/source/spelldsp.cxx | |
parent | 9ce6abe3d47d7992145e7950b719af8c7eb3b2df (diff) |
loplugin:reftotemp in libreofficekit..oox
Change-Id: I62d868f70e33850fa933c8f413f824a523422499
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176400
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'linguistic/source/spelldsp.cxx')
-rw-r--r-- | linguistic/source/spelldsp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx index 612ed2bc04a8..eb15cf3be923 100644 --- a/linguistic/source/spelldsp.cxx +++ b/linguistic/source/spelldsp.cxx @@ -83,19 +83,19 @@ void ProposalList::Append( const OUString &rOrig, bool bPrepend ) { bool bFound = false; // convert ASCII apostrophe to the typographic one - const OUString &rText( rOrig.indexOf( '\'' ) > -1 ? rOrig.replace('\'', u'’') : rOrig ); + const OUString aText( rOrig.indexOf( '\'' ) > -1 ? rOrig.replace('\'', u'’') : rOrig ); size_t nCnt = aVec.size(); for (size_t i = 0; !bFound && i < nCnt; ++i) { - if (aVec[i] == rText) + if (aVec[i] == aText) bFound = true; } if (!bFound) { if ( bPrepend ) - aVec.insert( aVec.begin(), rText ); + aVec.insert( aVec.begin(), aText ); else - aVec.push_back( rText ); + aVec.push_back( aText ); } } |