diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-05-06 13:46:03 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-05-06 16:18:29 +0200 |
commit | afad4eeaffcad716f135de2bd111bd0aca68e07f (patch) | |
tree | 8a4b2d969bfe75f0cdbb06bfaddbab69af33ba40 /include | |
parent | 8d10c23705f30e55f36220a7d9bad86c0c53c66a (diff) |
svtools: FontList loops with > 2^16 fonts
Change-Id: Idfe5d76ee384dff3280f81686cbf408c2f675dc6
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/ctrltool.hxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/svtools/ctrltool.hxx b/include/svtools/ctrltool.hxx index c05b55e82068..7e2ec66fae84 100644 --- a/include/svtools/ctrltool.hxx +++ b/include/svtools/ctrltool.hxx @@ -127,9 +127,6 @@ You should thus not reference the array after the next method call on the FontList. */ - -#define FONTLIST_FONTINFO_NOTFOUND ((sal_uInt16)0xFFFF) - class SVT_DLLPUBLIC FontList { private: @@ -182,11 +179,11 @@ public: FontItalic eItalic ) const; bool IsAvailable( const OUString& rName ) const; - sal_uInt16 GetFontNameCount() const + size_t GetFontNameCount() const { - return (sal_uInt16)m_Entries.size(); + return m_Entries.size(); } - const FontMetric& GetFontName( sal_uInt16 nFont ) const; + const FontMetric& GetFontName(size_t nFont) const; sal_Handle GetFirstFontMetric( const OUString& rName ) const; static sal_Handle GetNextFontMetric( sal_Handle hFontMetric ); static const FontMetric& GetFontMetric( sal_Handle hFontMetric ); |