summaryrefslogtreecommitdiff
path: root/src/gui/windows/charcreatedialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-10 18:21:31 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-10 18:21:31 +0300
commitc10177d08a6185431559bea19a296f2f7934340e (patch)
tree4dbbcc1fbd323a59ff1b3bf38cb04796cb5c3778 /src/gui/windows/charcreatedialog.cpp
parent7f9e82c6538dd51992518ee2af23d98a7c39cdeb (diff)
downloadplus-c10177d08a6185431559bea19a296f2f7934340e.tar.gz
plus-c10177d08a6185431559bea19a296f2f7934340e.tar.bz2
plus-c10177d08a6185431559bea19a296f2f7934340e.tar.xz
plus-c10177d08a6185431559bea19a296f2f7934340e.zip
Fix compilation warnings.
Diffstat (limited to 'src/gui/windows/charcreatedialog.cpp')
-rw-r--r--src/gui/windows/charcreatedialog.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp
index 57d956ca5..1375b4b25 100644
--- a/src/gui/windows/charcreatedialog.cpp
+++ b/src/gui/windows/charcreatedialog.cpp
@@ -127,7 +127,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent,
mMaxRace(CharDB::getMaxRace()),
mHairStyle(0),
mHairColor(0),
- mMaxY(0),
+ mMaxY(0U),
mSlot(slot),
mDefaultGender(Gender::FEMALE),
mGender(Gender::UNSPECIFIED),
@@ -299,12 +299,12 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent,
mNameField->setDimension(Rect(60, 2,
300, mNameField->getHeight()));
- const int labelPadding = getOption("labelPadding", 2);
- const int leftX = 120 + mPadding;
- const int rightX = 300 + mPadding;
- const int labelX = mPadding;
- int nameX = leftX + labelPadding;
- int y = 30;
+ const uint32_t labelPadding = getOption("labelPadding", 2);
+ const uint32_t leftX = 120 + mPadding;
+ const uint32_t rightX = 300 + mPadding;
+ const uint32_t labelX = mPadding;
+ uint32_t nameX = leftX + labelPadding;
+ uint32_t y = 30;
if (mPrevHairColorButton)
nameX += mPrevHairColorButton->getWidth();
else if (mPrevHairStyleButton)