diff options
author | jak1 <mike.wollmann@gmail.com> | 2021-03-07 21:10:07 +0000 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2021-03-07 21:10:07 +0000 |
commit | c592e6b8a5d75ae3bf2fd99c174c5048d904b108 (patch) | |
tree | 7e181a89d89bac8518f8f36e967b591e15169bcf | |
parent | 3bca904230ffd504e448d8c2ad53f063bae85d03 (diff) | |
download | manaverse-c592e6b8a5d75ae3bf2fd99c174c5048d904b108.tar.gz manaverse-c592e6b8a5d75ae3bf2fd99c174c5048d904b108.tar.bz2 manaverse-c592e6b8a5d75ae3bf2fd99c174c5048d904b108.tar.xz manaverse-c592e6b8a5d75ae3bf2fd99c174c5048d904b108.zip |
lint: tab->spaces & line len fixjesusalva/itpopup
-rw-r--r-- | src/gui/popups/itempopup.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/gui/popups/itempopup.cpp b/src/gui/popups/itempopup.cpp index f521dee50..2a082c05e 100644 --- a/src/gui/popups/itempopup.cpp +++ b/src/gui/popups/itempopup.cpp @@ -270,7 +270,8 @@ void ItemPopup::setItem(const ItemInfo &item, mItemName->adjustSize(); setLabelColor(mItemName, mItemType); mItemName->setPosition(space, 0); - const std::string readableEffect = replaceChar((char*)item.getEffect().c_str(), '/', '\n'); + const std::string readableEffect = + replaceChar((char*)item.getEffect().c_str(), '/', '\n'); mItemEffect->setTextWrapped(readableEffect, 196); // TRANSLATORS: popup label mItemWeight->setTextWrapped(strprintf(_("Weight: %s"), @@ -469,12 +470,12 @@ void ItemPopup::resetPopup() char* ItemPopup::replaceChar(char* str, char find, char replace) { - char *currentPos = str; - while ((currentPos = strchr(currentPos, find)) != NULL) - { - *currentPos = ' '; - currentPos++; - *currentPos = replace; - } - return str; + char *currentPos = str; + while ((currentPos = strchr(currentPos, find)) != NULL) + { + *currentPos = ' '; + currentPos++; + *currentPos = replace; + } + return str; } |