From 9db379b0b7dded5e9a4523ce48dac928979aab70 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 7 Sep 2020 22:21:36 +0200 Subject: Simplify GetVendorNameFromId, returning std::string_view Change-Id: Ida709a432a1892494a767da3979afdc3ee4477b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102206 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- vcl/inc/driverblocklist.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vcl/inc/driverblocklist.hxx') diff --git a/vcl/inc/driverblocklist.hxx b/vcl/inc/driverblocklist.hxx index f28dc418383a..a417d19ff543 100644 --- a/vcl/inc/driverblocklist.hxx +++ b/vcl/inc/driverblocklist.hxx @@ -12,6 +12,8 @@ #include #include + +#include #include namespace DriverBlocklist @@ -36,7 +38,7 @@ const int DeviceVendorMax = VendorMicrosoft + 1; /// Returns vendor for the given vendor ID, or VendorAll if not known. VCL_DLLPUBLIC DeviceVendor GetVendorFromId(uint32_t id); -VCL_DLLPUBLIC OUStringLiteral GetVendorNameFromId(uint32_t id); +VCL_DLLPUBLIC std::string_view GetVendorNameFromId(uint32_t id); // The rest should be private (only for the unittest). -- cgit