mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Fix various variables passed by copy instead of const ref (#5610)
Pointed by cppcheck
This commit is contained in:
@@ -146,9 +146,10 @@ public:
|
||||
#endif
|
||||
|
||||
#if USE_CURL
|
||||
Json::Value getModstoreUrl(std::string url);
|
||||
Json::Value getModstoreUrl(const std::string &url);
|
||||
#else
|
||||
inline Json::Value getModstoreUrl(std::string url) {
|
||||
inline Json::Value getModstoreUrl(const std::string &url)
|
||||
{
|
||||
return Json::Value();
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user