mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-12 20:55:27 +01:00
Various random code cleanups
This commit is contained in:
@@ -734,7 +734,7 @@ void TextDrawer::place(const core::rect<s32> &dest_rect)
|
||||
ymargin = p.margin;
|
||||
|
||||
// Place non floating stuff
|
||||
std::vector<ParsedText::Element>::iterator el = p.elements.begin();
|
||||
auto el = p.elements.begin();
|
||||
|
||||
while (el != p.elements.end()) {
|
||||
// Determine line width and y pos
|
||||
@@ -807,8 +807,8 @@ void TextDrawer::place(const core::rect<s32> &dest_rect)
|
||||
el++;
|
||||
}
|
||||
|
||||
std::vector<ParsedText::Element>::iterator linestart = el;
|
||||
std::vector<ParsedText::Element>::iterator lineend = p.elements.end();
|
||||
auto linestart = el;
|
||||
auto lineend = p.elements.end();
|
||||
|
||||
// First pass, find elements fitting into line
|
||||
// (or at least one element)
|
||||
|
||||
Reference in New Issue
Block a user