mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
fix: CppCheck issues
This commit is contained in:
@@ -772,7 +772,7 @@ EXPORT_MODULE namespace hex {
|
||||
void pop() const;
|
||||
|
||||
[[nodiscard]] operator ImFont*() const;
|
||||
[[nodiscard]] UnlocalizedString getUnlocalizedName() const { return m_fontName; }
|
||||
[[nodiscard]] const UnlocalizedString& getUnlocalizedName() const { return m_fontName; }
|
||||
|
||||
private:
|
||||
void push(float size, ImFont *font) const;
|
||||
|
||||
@@ -188,7 +188,7 @@ namespace hex::gl {
|
||||
|
||||
|
||||
T &getElement(int row,int col) {
|
||||
return this->mat[row * Columns+col];
|
||||
return this->mat[row * Columns + col];
|
||||
}
|
||||
|
||||
Vector<T,Rows> getColumn(int col) {
|
||||
@@ -205,12 +205,12 @@ namespace hex::gl {
|
||||
return result;
|
||||
}
|
||||
|
||||
void updateRow(int row, Vector<T,Columns> values) {
|
||||
void updateRow(int row, const Vector<T, Columns> &values) {
|
||||
for (size_t i = 0; i < Columns; i++)
|
||||
this->mat[row * Columns + i] = values[i];
|
||||
}
|
||||
|
||||
void updateColumn(int col, Vector<T,Rows> values) {
|
||||
void updateColumn(int col, const Vector<T, Rows> &values) {
|
||||
for (size_t i = 0; i < Rows; i++)
|
||||
this->mat[i * Columns + col] = values[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user