fix: a naming reuse
At ~200 lines below, `it` get reused and shadowed in a for loop `QStringList::iterator it`. Eliminate it completely. If we use C++20, we can just std::set::contains()
This commit is contained in:
parent
bed57aeaf6
commit
565a1115f7
@ -782,8 +782,9 @@ bool Preview::loadDocInCurrentTab(const Rcl::Doc &idoc, int docnum)
|
|||||||
connect(<hr, SIGNAL(finished()), &loop, SLOT(quit()));
|
connect(<hr, SIGNAL(finished()), &loop, SLOT(quit()));
|
||||||
|
|
||||||
bool canGetRawText = rcldb && rcldb->storesDocText();
|
bool canGetRawText = rcldb && rcldb->storesDocText();
|
||||||
auto it = prefs.preferStoredTextMimes.find(idoc.mimetype);
|
bool preferStoredText = std::find(prefs.preferStoredTextMimes.begin(),
|
||||||
bool preferStoredText = (it != prefs.preferStoredTextMimes.end());
|
prefs.preferStoredTextMimes.end(),
|
||||||
|
idoc.mimetype) != prefs.preferStoredTextMimes.end();
|
||||||
bool loadok{false};
|
bool loadok{false};
|
||||||
|
|
||||||
if (!preferStoredText || !canGetRawText) {
|
if (!preferStoredText || !canGetRawText) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user