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.
This commit is contained in:
Lioncash 2019-05-29 00:23:46 -04:00
parent e8f7abaf34
commit 5f2adf1a9e
3 changed files with 9 additions and 8 deletions

View file

@ -136,7 +136,7 @@ bool QtProfileSelectionDialog::GetStatus() const {
return ok;
}
u32 QtProfileSelectionDialog::GetIndex() const {
int QtProfileSelectionDialog::GetIndex() const {
return user_index;
}