mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
fix size type
This commit is contained in:
parent
44bd3376ce
commit
947b8c0291
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
#include <QTextDocument>
|
#include <QTextDocument>
|
||||||
#include <QXmlStreamReader>
|
#include <QXmlStreamReader>
|
||||||
|
|
||||||
|
#include <bits/c++config.h>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <fmt/core.h>
|
#include <fmt/core.h>
|
||||||
#include <variant>
|
#include <variant>
|
||||||
|
@ -509,7 +510,7 @@ utils::markdownToHtml(const QString &text, bool rainbowify)
|
||||||
std::string nodeText(tmp_buf);
|
std::string nodeText(tmp_buf);
|
||||||
// create buffer to append rainbow text to
|
// create buffer to append rainbow text to
|
||||||
std::string buf;
|
std::string buf;
|
||||||
for (int i = 0; i < nodeText.length(); i++) {
|
for (std::size_t i = 0; i < nodeText.length(); i++) {
|
||||||
// Don't rainbowify spaces
|
// Don't rainbowify spaces
|
||||||
if (nodeText.at(i) == ' ') {
|
if (nodeText.at(i) == ' ') {
|
||||||
buf.push_back(' ');
|
buf.push_back(' ');
|
||||||
|
|
Loading…
Reference in a new issue