Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
apple1417 committed Sep 21, 2023
1 parent eac20b5 commit d0ec608
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/unrealsdk/game/abstract_hook.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct AbstractHook {
const std::wstring& name) const = 0;
#ifdef UE4
virtual void ftext_as_culture_invariant(unreal::FText* text,
unreal::TemporaryFString&& str) const = 0;
unreal::TemporaryFString& str) const = 0;
#endif
};

Expand Down
2 changes: 1 addition & 1 deletion src/unrealsdk/game/bl3/bl3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void BL3Hook::find_ftext_as_culture_invariant(void) {
LOG(MISC, "FText::AsCultureInvariant: {:p}", reinterpret_cast<void*>(fname_init_ptr));
}

void BL3Hook::ftext_as_culture_invariant(FText* text, TemporaryFString&& str) const {
void BL3Hook::ftext_as_culture_invariant(FText* text, TemporaryFString& str) const {
ftext_as_culture_invariant_ptr(text, &str);
}

Expand Down
2 changes: 1 addition & 1 deletion src/unrealsdk/game/bl3/bl3.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class BL3Hook : public AbstractHook {
[[nodiscard]] unreal::UObject* find_object(unreal::UClass* cls,
const std::wstring& name) const override;
void ftext_as_culture_invariant(unreal::FText* text,
unreal::TemporaryFString&& str) const override;
unreal::TemporaryFString& str) const override;
};

template <>
Expand Down
3 changes: 2 additions & 1 deletion src/unrealsdk/unreal/structs/gobjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ FUObjectItem* FChunkedFixedUObjectArray::at(size_t idx) const {
throw std::out_of_range("FChunkedFixedUObjectArray index out of range");
}
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
return &this->Objects[idx / this->NumElementsPerChunk][idx % this->NumElementsPerChunk];
return &this->Objects[idx / FChunkedFixedUObjectArray::NumElementsPerChunk]
[idx % FChunkedFixedUObjectArray::NumElementsPerChunk];
};

#endif
Expand Down

0 comments on commit d0ec608

Please sign in to comment.