diff options
author | 2015-04-24 14:25:33 -0700 | |
---|---|---|
committer | 2015-04-24 14:25:33 -0700 | |
commit | 37a92b44373a6ace53d7f446206e9dc544fff288 (patch) | |
tree | 8a35b6200f29084d81da89464f409d914cf6b472 /src/fonts/SkFontMgr_fontconfig.cpp | |
parent | d96fd0c073fa44a475363003c8f0d25a077edc6c (diff) |
Update {virtual,override} to follow C++11 style in src/fonts.
The Google style guide states that only one of {virtual,override,final}
should be used for each declaration, since override implies virtual and
final implies both virtual and override.
The entries were found using the following command line:
$ find src/fonts -iname "*.h" -o -iname "*.cpp" | xargs pcregrep -M
"[^\n/]+virtual\ [^;{]+\ [a-zA-Z0-9_]+\([^;{]+\ override[ \n]*[;{]"
The regex was a courtesy of nick@chromium.org
BUG=None
R=mtklein@google.com
Review URL: https://codereview.chromium.org/1101343002
Diffstat (limited to 'src/fonts/SkFontMgr_fontconfig.cpp')
-rw-r--r-- | src/fonts/SkFontMgr_fontconfig.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/fonts/SkFontMgr_fontconfig.cpp b/src/fonts/SkFontMgr_fontconfig.cpp index 4b86a6ed78..9bdc9272f3 100644 --- a/src/fonts/SkFontMgr_fontconfig.cpp +++ b/src/fonts/SkFontMgr_fontconfig.cpp @@ -283,15 +283,15 @@ protected: return sset; } - virtual SkTypeface* onMatchFamilyStyle(const char familyName[], - const SkFontStyle&) const override { return NULL; } - virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, - const char* bcp47[], int bcp47Count, - SkUnichar character) const override { + SkTypeface* onMatchFamilyStyle(const char familyName[], + const SkFontStyle&) const override { return NULL; } + SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, + const char* bcp47[], int bcp47Count, + SkUnichar character) const override { return NULL; } - virtual SkTypeface* onMatchFaceStyle(const SkTypeface*, - const SkFontStyle&) const override { return NULL; } + SkTypeface* onMatchFaceStyle(const SkTypeface*, + const SkFontStyle&) const override { return NULL; } SkTypeface* onCreateFromData(SkData*, int ttcIndex) const override { return NULL; } @@ -321,8 +321,8 @@ protected: return stream.get() ? this->createFromStream(stream.detach(), ttcIndex) : NULL; } - virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], - unsigned styleBits) const override { + SkTypeface* onLegacyCreateTypeface(const char familyName[], + unsigned styleBits) const override { FCLocker lock; return FontConfigTypeface::LegacyCreateTypeface(familyName, (SkTypeface::Style)styleBits); } |