diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-02 13:31:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-02 13:31:05 +0200 |
commit | 6d96156778b11ceb076d1e51c38379be44fb06da (patch) | |
tree | c3d8d32c0db4518926c08a98029e3e1f98bd849d | |
parent | 903bd0db0977f35c7d2cdfd82783591bbd374a7e (diff) |
Improved loplugin:redundantcast const_cast handling: vcl
Change-Id: I7ecc72d4a5a68db8755ff0147fa1326e33827a82
-rw-r--r-- | vcl/unx/generic/fontmanager/fontsubst.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/fontmanager/fontsubst.cxx b/vcl/unx/generic/fontmanager/fontsubst.cxx index 2f050c8c23be..f55d4cbb7d0c 100644 --- a/vcl/unx/generic/fontmanager/fontsubst.cxx +++ b/vcl/unx/generic/fontmanager/fontsubst.cxx @@ -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()) { |