summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2015-12-24 12:04:15 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2015-12-24 02:25:30 +0000
commitfab012e7ea6c84d0bd0867cefee0b5e9563abc53 (patch)
treed580044d82a4f7771f7005cd91d57ef822fbf69c /vcl/inc
parent4842b8f2fbdbf543effb92d4df332b50e3ffd6f7 (diff)
vcl: function name change to ImplFindFontFamilyOfDefaultFont
Changed ImplFindDefaultFontFamily to ImplFindFontFamilyOfDefaultFont because it was misleading before. It was originally FindDefaultFont, which it never was (it found an instance of PhysicalFontFamily, not a specific font face), but when I changed it to ImplFindDefaultFontFamily this is wrong also because it doesn't find a default font family, it finds the default font and then returns that font's PhysicalFontFamily. Whilst this function name is longer, it's also a private function so not going to be used by other classes, thus I think it's better to increase code reading clarity in this instance. Change-Id: Ie39fa5899fece157cdca6789d7b8504e58ceb316 Reviewed-on: https://gerrit.libreoffice.org/20917 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/PhysicalFontCollection.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/PhysicalFontCollection.hxx b/vcl/inc/PhysicalFontCollection.hxx
index 67d762de0217..4adbbe7b0401 100644
--- a/vcl/inc/PhysicalFontCollection.hxx
+++ b/vcl/inc/PhysicalFontCollection.hxx
@@ -85,7 +85,7 @@ private:
PhysicalFontFamily* ImplFindFontFamilyByAliasName ( const OUString& rSearchName, const OUString& rShortName) const;
PhysicalFontFamily* ImplFindFontFamilyBySubstFontAttr( const utl::FontNameAttr& ) const;
- PhysicalFontFamily* ImplFindDefaultFontFamily() const;
+ PhysicalFontFamily* ImplFindFontFamilyOfDefaultFont() const;
};