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:
commit
71e9fac7c6
@ -41,7 +41,7 @@ class RichString
|
||||
{
|
||||
public:
|
||||
RichString();
|
||||
explicit RichString(const QString text);
|
||||
explicit RichString(const QString& text);
|
||||
RichString(const RichString &other);
|
||||
~RichString();
|
||||
|
||||
|
@ -47,7 +47,7 @@ RichString::RichString()
|
||||
/*!
|
||||
Constructs a plain string with the given \a text.
|
||||
*/
|
||||
RichString::RichString(const QString text)
|
||||
RichString::RichString(const QString& text)
|
||||
:d(new RichStringPrivate)
|
||||
{
|
||||
addFragment(text, Format());
|
||||
@ -116,7 +116,7 @@ bool RichString::isNull() const
|
||||
*/
|
||||
bool RichString::isEmtpy() const
|
||||
{
|
||||
for (const QString &str : d->fragmentTexts) {
|
||||
for (const auto& str : d->fragmentTexts) {
|
||||
if (!str.isEmpty())
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user