mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
Address clang 6.0 compilation errors.
This commit is contained in:
@@ -161,7 +161,7 @@ private:
|
||||
if (!path.empty())
|
||||
{
|
||||
// Convert back slashes to forward slashes
|
||||
result = std::move(std::string(path));
|
||||
result = std::string(path);
|
||||
for (auto ch = result.data(); *ch != '\0'; ch++)
|
||||
{
|
||||
if (*ch == '\\')
|
||||
|
||||
@@ -104,9 +104,9 @@ public:
|
||||
bool loadImages,
|
||||
const IFileDataRetriever * fileDataRetriever)
|
||||
: _objectRepository(objectRepository),
|
||||
_fileDataRetriever(fileDataRetriever),
|
||||
_objectName(objectName),
|
||||
_loadImages(loadImages),
|
||||
_fileDataRetriever(fileDataRetriever)
|
||||
_loadImages(loadImages)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -426,11 +426,11 @@ namespace ObjectJsonHelpers
|
||||
if (json_is_string(el))
|
||||
{
|
||||
auto s = json_string_value(el);
|
||||
images = std::move(ParseImages(context, s));
|
||||
images = ParseImages(context, s);
|
||||
}
|
||||
else if (json_is_object(el))
|
||||
{
|
||||
images = std::move(ParseImages(context, el));
|
||||
images = ParseImages(context, el);
|
||||
}
|
||||
for (const auto &g1 : images)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user