summaryrefslogtreecommitdiff
path: root/src/yuzu/applets
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
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')
-rw-r--r--src/yuzu/applets/profile_select.cpp2
-rw-r--r--src/yuzu/applets/profile_select.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/applets/profile_select.cpp b/src/yuzu/applets/profile_select.cpp
index 7fbc9deeb..6696cb532 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;
}
diff --git a/src/yuzu/applets/profile_select.h b/src/yuzu/applets/profile_select.h
index 1c2922e54..ff02df93b 100644
--- a/src/yuzu/applets/profile_select.h
+++ b/src/yuzu/applets/profile_select.h
@@ -30,11 +30,11 @@ public:
void reject() override;
bool GetStatus() const;
- u32 GetIndex() const;
+ int GetIndex() const;
private:
bool ok = false;
- u32 user_index = 0;
+ int user_index = 0;
void SelectUser(const QModelIndex& index);