Skip to content

Commit

Permalink
chore: add missing nodiscard attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Dec 3, 2023
1 parent c01aaff commit 83566f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/studiomodelpp/structs/MDL.h
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,4 @@ struct MDL {
//int _unused3;
};

} // namespace studiomodelpp
} // namespace studiomodelpp::MDL
2 changes: 1 addition & 1 deletion include/studiomodelpp/structs/VTX.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ struct BodyPart {
};

struct VTX {
bool open(const std::byte* data, std::size_t size, int mdlVersion, int mdlChecksum);
[[nodiscard]] bool open(const std::byte* data, std::size_t size, int mdlVersion, int mdlChecksum);

int version;
int vertexCacheSize;
Expand Down
2 changes: 1 addition & 1 deletion include/studiomodelpp/structs/VVD.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct Vertex {
};

struct VVD {
bool open(const std::byte* data, std::size_t size, int mdlVersion, int mdlChecksum);
[[nodiscard]] bool open(const std::byte* data, std::size_t size, int mdlVersion, int mdlChecksum);

//int id;
int version;
Expand Down

0 comments on commit 83566f8

Please sign in to comment.