cppcheck complaints
This commit is contained in:
@@ -419,7 +419,7 @@ void OpdsBookBrowserActivity::fetchFeed(const std::string& path) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
parser.onEntryParsed = [&](OpdsEntry entry) {
|
parser.onEntryParsed = [&](const OpdsEntry& entry) {
|
||||||
uint32_t offset = cacheFile.position();
|
uint32_t offset = cacheFile.position();
|
||||||
entryOffsets.push_back(offset);
|
entryOffsets.push_back(offset);
|
||||||
writeEntryToCache(cacheFile, entry);
|
writeEntryToCache(cacheFile, entry);
|
||||||
@@ -569,7 +569,7 @@ void OpdsBookBrowserActivity::downloadBook(const OpdsEntry& book, const OpdsAcqu
|
|||||||
std::string baseFilename = filename;
|
std::string baseFilename = filename;
|
||||||
size_t dotPos = baseFilename.find_last_of('.');
|
size_t dotPos = baseFilename.find_last_of('.');
|
||||||
if (dotPos != std::string::npos) {
|
if (dotPos != std::string::npos) {
|
||||||
baseFilename = baseFilename.substr(0, dotPos);
|
baseFilename.resize(dotPos);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ext = ".jpg";
|
std::string ext = ".jpg";
|
||||||
|
|||||||
Reference in New Issue
Block a user