diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-09-07 22:21:36 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-09-08 07:33:19 +0200 |
commit | 9db379b0b7dded5e9a4523ce48dac928979aab70 (patch) | |
tree | ea0a7d7f7d02e7467e7eb1f1228f3b453f1b9e6d /vcl/inc/driverblocklist.hxx | |
parent | e58fbb757f3b97d43dd57d32a0752c06bbc7766c (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'vcl/inc/driverblocklist.hxx')
-rw-r--r-- | vcl/inc/driverblocklist.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
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 <vcl/dllapi.h> #include <xmlreader/xmlreader.hxx> + +#include <string_view> #include <vector> 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). |