mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
bugfix: do not use reference to hold return value from capturedTexts()
Signed-off-by: Le Tan <tamlokveer@gmail.com>
This commit is contained in:
parent
010f4245f6
commit
8db54c45a4
@ -219,7 +219,7 @@ void HGMarkdownHighlighter::highlightLinkWithSpacesInURL(const QString &p_text)
|
|||||||
while (index >= 0) {
|
while (index >= 0) {
|
||||||
Q_ASSERT(regExp.captureCount() == 1);
|
Q_ASSERT(regExp.captureCount() == 1);
|
||||||
int length = regExp.matchedLength();
|
int length = regExp.matchedLength();
|
||||||
const QString &capturedText = regExp.capturedTexts()[1];
|
QString capturedText = regExp.capturedTexts()[1];
|
||||||
if (capturedText.contains(' ')) {
|
if (capturedText.contains(' ')) {
|
||||||
if (p_text[index] == '!' && m_imageFormat.isValid()) {
|
if (p_text[index] == '!' && m_imageFormat.isValid()) {
|
||||||
setFormat(index, length, m_imageFormat);
|
setFormat(index, length, m_imageFormat);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user