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:
parent
83bf35c42b
commit
3a180b81f2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue