Enable more compiler warnings and treat them as errors.
This commit is contained in:
+1
-1
@@ -647,7 +647,7 @@ void BitmapText::CropLineToWidth(size_t l, int width)
|
||||
{
|
||||
int used_width= width;
|
||||
std::wstring& line= m_wTextLines[l];
|
||||
int fit= m_pFont->GetGlyphsThatFit(line, &used_width);
|
||||
const auto fit= m_pFont->GetGlyphsThatFit(line, &used_width);
|
||||
if(fit < line.size())
|
||||
{
|
||||
line.erase(line.begin()+fit, line.end());
|
||||
|
||||
Reference in New Issue
Block a user