1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-30 05:02:52 +08:00

Merge branch 'richstring' into qt6beta

This commit is contained in:
Jay Two 2021-02-06 14:08:27 +09:00
commit 71e9fac7c6
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ class RichString
{ {
public: public:
RichString(); RichString();
explicit RichString(const QString text); explicit RichString(const QString& text);
RichString(const RichString &other); RichString(const RichString &other);
~RichString(); ~RichString();

View File

@ -47,7 +47,7 @@ RichString::RichString()
/*! /*!
Constructs a plain string with the given \a text. Constructs a plain string with the given \a text.
*/ */
RichString::RichString(const QString text) RichString::RichString(const QString& text)
:d(new RichStringPrivate) :d(new RichStringPrivate)
{ {
addFragment(text, Format()); addFragment(text, Format());
@ -116,7 +116,7 @@ bool RichString::isNull() const
*/ */
bool RichString::isEmtpy() const bool RichString::isEmtpy() const
{ {
for (const QString &str : d->fragmentTexts) { for (const auto& str : d->fragmentTexts) {
if (!str.isEmpty()) if (!str.isEmpty())
return false; return false;
} }