https://bugs.kde.org/show_bug.cgi?id=392224

            Bug ID: 392224
           Summary: Improve check "qstring-allocations". Replace
                    QString::setNum with static version QString::number
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-b...@kde.org
          Reporter: dism...@gmail.com
                CC: smart...@kde.org
  Target Milestone: ---

Hi,

I just have found in my code string like this: 

QString str = QString().setNum(1234);

This can be replaced as:

QString str = QString::number(1234);

I checked Qt's source code and setNum() uses number() inside anyway. I assume
calling setNum() like this should be case for "qstring-allocations".

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to