Kaydet (Commit) 6d961567 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Improved loplugin:redundantcast const_cast handling: vcl

Change-Id: I7ecc72d4a5a68db8755ff0147fa1326e33827a82
üst 903bd0db
......@@ -105,7 +105,7 @@ bool FcPreMatchSubstitution::FindFontSubstitute( FontSelectPattern &rFontSelData
//just on the name, cache map all the input and all the output not just map
//from original selection to output fontname
FontSelectPattern& rPatternAttributes = rFontSelData;
CachedFontMapType &rCachedFontMap = const_cast<CachedFontMapType &>(maCachedFontMap);
CachedFontMapType &rCachedFontMap = maCachedFontMap;
CachedFontMapType::iterator itr = std::find_if(rCachedFontMap.begin(), rCachedFontMap.end(), equal(rPatternAttributes));
if (itr != rCachedFontMap.end())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment