summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjak1 <mike.wollmann@gmail.com>2021-03-07 21:10:07 +0000
committerjak1 <mike.wollmann@gmail.com>2021-03-07 21:10:07 +0000
commitc592e6b8a5d75ae3bf2fd99c174c5048d904b108 (patch)
tree7e181a89d89bac8518f8f36e967b591e15169bcf
parent3bca904230ffd504e448d8c2ad53f063bae85d03 (diff)
downloadmanaverse-jesusalva/itpopup.tar.gz
manaverse-jesusalva/itpopup.tar.bz2
manaverse-jesusalva/itpopup.tar.xz
manaverse-jesusalva/itpopup.zip
lint: tab->spaces & line len fixjesusalva/itpopup
-rw-r--r--src/gui/popups/itempopup.cpp19
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;
}