summaryrefslogtreecommitdiff
path: root/src/yuzu/applets/profile_select.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-29 00:23:46 -0400
committerLioncash <mathew1800@gmail.com>2019-05-29 00:29:09 -0400
commit139301c5a12b769d5a13dec55589ed7fb5dc7bdf (patch)
tree7988b954c2cb870185c29a9b247bb8058b87d217 /src/yuzu/applets/profile_select.cpp
parent90c9d703baacddb6abdf464bfb9c9eb906bd78a8 (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.cpp2
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;
}