diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-13 11:01:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-13 18:47:15 +0200 |
commit | 5652ecbf8bf9bf8b3c15764c38d26fe4b449cb64 (patch) | |
tree | 9fac7934b2f8beaf3bcf9e4288ae26835485b0c7 /vcl | |
parent | 041e0d0943dffc2002a21ba7a157200766ecd644 (diff) |
use more string_view in PrinterInfoManager
Change-Id: Ib0173b1a33be7156c27c81b0804ac7c4d3373857
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150336
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/printerinfomanager.hxx | 2 | ||||
-rw-r--r-- | vcl/null/printerinfomanager.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/printer/printerinfomanager.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/printerinfomanager.hxx b/vcl/inc/printerinfomanager.hxx index 3b5394ace0e9..a89cff1118a5 100644 --- a/vcl/inc/printerinfomanager.hxx +++ b/vcl/inc/printerinfomanager.hxx @@ -161,7 +161,7 @@ public: bool getUseJobPatch() const { return m_bUseJobPatch; } // check whether a printer's feature string contains a subfeature - bool checkFeatureToken( const OUString& rPrinterName, const char* pToken ) const; + bool checkFeatureToken( const OUString& rPrinterName, std::string_view pToken ) const; virtual ~PrinterInfoManager(); }; diff --git a/vcl/null/printerinfomanager.cxx b/vcl/null/printerinfomanager.cxx index 24515dbc149e..7b95d3b28e11 100644 --- a/vcl/null/printerinfomanager.cxx +++ b/vcl/null/printerinfomanager.cxx @@ -81,7 +81,7 @@ const PrinterInfo& PrinterInfoManager::getPrinterInfo( const OUString& /* rPrint return aEmptyInfo; } -bool PrinterInfoManager::checkFeatureToken( const OUString& /* rPrinterName */, const char* /* pToken */ ) const +bool PrinterInfoManager::checkFeatureToken( const OUString& /* rPrinterName */, std::string_view /* pToken */ ) const { (void) this; diff --git a/vcl/unx/generic/printer/printerinfomanager.cxx b/vcl/unx/generic/printer/printerinfomanager.cxx index a2d99ccf0e59..c81e4ce256ee 100644 --- a/vcl/unx/generic/printer/printerinfomanager.cxx +++ b/vcl/unx/generic/printer/printerinfomanager.cxx @@ -548,7 +548,7 @@ const PrinterInfo& PrinterInfoManager::getPrinterInfo( const OUString& rPrinter return it != m_aPrinters.end() ? it->second.m_aInfo : aEmptyInfo; } -bool PrinterInfoManager::checkFeatureToken( const OUString& rPrinterName, const char* pToken ) const +bool PrinterInfoManager::checkFeatureToken( const OUString& rPrinterName, std::string_view pToken ) const { const PrinterInfo& rPrinterInfo( getPrinterInfo( rPrinterName ) ); sal_Int32 nIndex = 0; |