mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-05 07:07:38 +03:00
fic cppcheck
This commit is contained in:
parent
87873c5d05
commit
03cc728f6f
@ -342,7 +342,7 @@ void MyLibraryActivity::renderRecentTab() const {
|
|||||||
}
|
}
|
||||||
const size_t dot = title.find_last_of('.');
|
const size_t dot = title.find_last_of('.');
|
||||||
if (dot != std::string::npos) {
|
if (dot != std::string::npos) {
|
||||||
title = title.substr(0, dot);
|
title.resize(dot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto truncatedTitle = renderer.truncatedText(UI_12_FONT_ID, title.c_str(), pageWidth - LEFT_MARGIN - RIGHT_MARGIN);
|
auto truncatedTitle = renderer.truncatedText(UI_12_FONT_ID, title.c_str(), pageWidth - LEFT_MARGIN - RIGHT_MARGIN);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user