mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-11 05:10:05 +00:00
code: Small cleanups and fixes to lambda captures (#6191)
Co-authored-by: v1993 <v19930312@gmail.com> Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com>
This commit is contained in:
parent
9d5ae8e1c2
commit
cb82ffbe20
6 changed files with 17 additions and 8 deletions
|
@ -320,6 +320,12 @@ public:
|
|||
setData(type(), TypeRole);
|
||||
setData(size_bytes, SizeRole);
|
||||
}
|
||||
explicit GameListItemSize(const QString& string) {
|
||||
// This is required to avoid incorrect virtual function call in
|
||||
// GameListItem's constructor
|
||||
setText(string);
|
||||
setData(string, SortRole);
|
||||
}
|
||||
|
||||
void setData(const QVariant& value, int role) override {
|
||||
// By specializing setData for SizeRole, we can ensure that the numerical and string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue