summaryrefslogtreecommitdiff
path: root/src/yuzu/applets/profile_select.h
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.h
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.h')
-rw-r--r--src/yuzu/applets/profile_select.h4
1 files changed, 2 insertions, 2 deletions
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);