Skip to content

Commit

Permalink
Qt 5.14 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OneMoreGres committed Dec 12, 2019
1 parent c26d040 commit 0cf52fd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/markdowntextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,9 @@ QString QMarkdownTextEdit::getMarkdownUrlAtPosition (
// get a map of parsed markdown urls with their link texts as key
QMap<QString, QString> urlMap = parseMarkdownUrlsFromText (text);

QMapIterator<QString, QString> iterator (urlMap);
while (iterator.hasNext ()) {
iterator.next ();
QString linkText = iterator.key ();
QString urlString = iterator.value ();
for (auto it = urlMap.cbegin(), end = urlMap.cend(); it != end; ++it) {
QString linkText = it.key ();
QString urlString = it.value ();

int foundPositionStart = text.indexOf (linkText);

Expand Down

0 comments on commit 0cf52fd

Please sign in to comment.