summaryrefslogtreecommitdiff
path: root/ftparchive
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2024-11-14 18:37:57 +0100
committerнаб <nabijaczleweli@nabijaczleweli.xyz>2024-11-14 18:41:26 +0100
commit323fcee3730fc8e3edd555f458bf260382f6d3ef (patch)
tree06b1aab8e81f37858f3718a30f282eedb9692d08 /ftparchive
parent784c7e84b58e784cf137f15d411d29fb4933a8e5 (diff)
std::string_view const & -> std::string_view
Fixes: 2c03eed649068c8838d971ceeb1a09603dcc8e9c
Diffstat (limited to 'ftparchive')
-rw-r--r--ftparchive/override.cc4
-rw-r--r--ftparchive/override.h6
-rw-r--r--ftparchive/writer.cc2
-rw-r--r--ftparchive/writer.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/ftparchive/override.cc b/ftparchive/override.cc
index 1a016b589..6ef048e0f 100644
--- a/ftparchive/override.cc
+++ b/ftparchive/override.cc
@@ -208,7 +208,7 @@ bool Override::ReadExtraOverride(string const &File,bool const &/*Source*/)
/* Returns a override item for the given package and the given architecture.
* Treats "all" special
*/
-Override::Item* Override::GetItem(std::string_view const &Package, std::string_view const &Architecture)
+Override::Item* Override::GetItem(std::string_view Package, std::string_view Architecture)
{
map<string,Item>::const_iterator I = Mapping.find(Package);
map<string,Item>::iterator J = Mapping.find((std::string{Package} += '/') += Architecture);
@@ -246,7 +246,7 @@ Override::Item* Override::GetItem(std::string_view const &Package, std::string_v
there is a rule but it does not match then the empty string is returned,
also if there was no rewrite rule the empty string is returned. Failed
indicates if there was some kind of problem while rewriting. */
-string Override::Item::SwapMaint(std::string_view const &Orig,bool &Failed)
+string Override::Item::SwapMaint(std::string_view Orig,bool &Failed)
{
Failed = false;
diff --git a/ftparchive/override.h b/ftparchive/override.h
index f57c71df9..ea3b5b9c6 100644
--- a/ftparchive/override.h
+++ b/ftparchive/override.h
@@ -28,17 +28,17 @@ class Override
string NewMaint;
map<string,string> FieldOverride;
- string SwapMaint(std::string_view const &Orig,bool &Failed);
+ string SwapMaint(std::string_view Orig,bool &Failed);
~Item() {};
};
map<string,Item,std::less<>> Mapping;
- inline Item *GetItem(std::string_view const &Package)
+ inline Item *GetItem(std::string_view Package)
{
return GetItem(Package, "");
}
- Item *GetItem(std::string_view const &Package, std::string_view const &Architecture);
+ Item *GetItem(std::string_view Package, std::string_view Architecture);
bool ReadOverride(string const &File,bool const &Source = false);
bool ReadExtraOverride(string const &File,bool const &Source = false);
diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc
index 6d2a13314..d9432a815 100644
--- a/ftparchive/writer.cc
+++ b/ftparchive/writer.cc
@@ -549,7 +549,7 @@ TranslationWriter::TranslationWriter(string const &File, string const &TransComp
// TranslationWriter::DoPackage - Process a single package /*{{{*/
// ---------------------------------------------------------------------
/* Create a Translation-Master file for this Packages file */
-bool TranslationWriter::DoPackage(string_view const &Pkg, string const &Desc,
+bool TranslationWriter::DoPackage(string_view Pkg, string const &Desc,
string const &MD5)
{
if (Output == NULL)
diff --git a/ftparchive/writer.h b/ftparchive/writer.h
index a366233ab..cadddc2b9 100644
--- a/ftparchive/writer.h
+++ b/ftparchive/writer.h
@@ -95,7 +95,7 @@ class TranslationWriter
FileFd *Output;
public:
- bool DoPackage(std::string_view const &Pkg, string const &Desc, string const &MD5);
+ bool DoPackage(std::string_view Pkg, string const &Desc, string const &MD5);
TranslationWriter(string const &File, string const &TransCompress, mode_t const &Permissions);
~TranslationWriter();