diff options
Diffstat (limited to 'vcl/inc/font')
-rw-r--r-- | vcl/inc/font/DirectFontSubstitution.hxx | 3 | ||||
-rw-r--r-- | vcl/inc/font/PhysicalFontCollection.hxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/vcl/inc/font/DirectFontSubstitution.hxx b/vcl/inc/font/DirectFontSubstitution.hxx index 7c2840bb4cad..4abfb8832ea7 100644 --- a/vcl/inc/font/DirectFontSubstitution.hxx +++ b/vcl/inc/font/DirectFontSubstitution.hxx @@ -28,13 +28,14 @@ #include <font/fontsubstitution.hxx> #include <string> +#include <string_view> #include <vector> namespace vcl::font { struct FontSubstEntry { - FontSubstEntry(OUString const& rFontName, OUString const& rSubstFontName, + FontSubstEntry(std::u16string_view rFontName, std::u16string_view rSubstFontName, AddFontSubstituteFlags nSubstFlags) : maSearchName(GetEnglishSearchFontName(rFontName)) , maSearchReplaceName(GetEnglishSearchFontName(rSubstFontName)) diff --git a/vcl/inc/font/PhysicalFontCollection.hxx b/vcl/inc/font/PhysicalFontCollection.hxx index 5cad84ca15f7..c73be7075ca5 100644 --- a/vcl/inc/font/PhysicalFontCollection.hxx +++ b/vcl/inc/font/PhysicalFontCollection.hxx @@ -28,6 +28,7 @@ #include "PhysicalFontFamily.hxx" #include <array> +#include <string_view> #define MAX_GLYPHFALLBACK 16 @@ -55,7 +56,7 @@ public: int Count() const { return maPhysicalFontFamilies.size(); } // find the device font family - vcl::font::PhysicalFontFamily* FindFontFamily( const OUString& rFontName ) const; + vcl::font::PhysicalFontFamily* FindFontFamily( std::u16string_view rFontName ) const; vcl::font::PhysicalFontFamily* FindOrCreateFontFamily( const OUString &rFamilyName ); vcl::font::PhysicalFontFamily* FindFontFamily( vcl::font::FontSelectPattern& ) const; vcl::font::PhysicalFontFamily* FindFontFamilyByTokenNames(const OUString& rTokenStr) const; |