diff options
author | Lioncash <mathew1800@gmail.com> | 2019-05-29 00:23:46 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-05-29 00:29:09 -0400 |
commit | 139301c5a12b769d5a13dec55589ed7fb5dc7bdf (patch) | |
tree | 7988b954c2cb870185c29a9b247bb8058b87d217 /src/yuzu/applets/profile_select.cpp | |
parent | 90c9d703baacddb6abdf464bfb9c9eb906bd78a8 (diff) |
profile_select: Return int instead of u32 for GetIndex()
Qt uses a signed value to represent indices. We should follow this
convention where applicable to avoid unnecessary sign-conversion
warnings, as well as making it easier to interoperate with other aspects
of Qt.
While we're at it, we can also make a sign-conversion explicit.
Diffstat (limited to 'src/yuzu/applets/profile_select.cpp')
-rw-r--r-- | src/yuzu/applets/profile_select.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/applets/profile_select.cpp b/src/yuzu/applets/profile_select.cpp index 7fbc9deebf..6696cb5321 100644 --- a/src/yuzu/applets/profile_select.cpp +++ b/src/yuzu/applets/profile_select.cpp @@ -136,7 +136,7 @@ bool QtProfileSelectionDialog::GetStatus() const { return ok; } -u32 QtProfileSelectionDialog::GetIndex() const { +int QtProfileSelectionDialog::GetIndex() const { return user_index; } |