Apply suggestions from code review

Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
Signed-off-by: alnzrv <7187657+alnzrv@users.noreply.github.com>
This commit is contained in:
alnzrv 2024-07-02 22:49:04 +02:00 committed by GitHub
parent 83bf35c42b
commit 3a180b81f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ std::string Metadata::GetWikiURL() const
return ToWikiURL(string(Get(FMD_WIKIPEDIA)));
}
string Metadata::ToWikimediaCommonsURL(std::string v)
std::string Metadata::ToWikimediaCommonsURL(std::string v)
{
if (v.empty())
return v;
@ -62,7 +62,7 @@ string Metadata::ToWikimediaCommonsURL(std::string v)
if (c == '?')
{
c = '%';
v.insert(i + 1, "3F"); // ? => %3F
v.insert(++i, "3F"); // ? => %3F
}
}